(All Events) Link!

Home Forums Calendar Products Filter Bar (All Events) Link!

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #321214
    cclm
    Participant

    Hello there,
    I wish to show two separate calendars in my site. Since, this is not directly doable, the other way to do it is to show two different categories to represent two different calendars.

    Calendar A – is actually category A, and I will the category URL to show Category A as if it is Calendar A.
    The same applies to Calendar B.

    Now, my problem is that once someone views a single event, there is a link on the top that says ( << All events). If someone clicks it, it will take him to the whole calendar Not the category he come from.

    Is there a way to customize this link, so it takes the user back to the category-based calendar, not the whole one?

    I hope my question is clear. Thanks

    #335136
    Casey
    Participant

    cclm,
    Good to hear from you again! 😀 Take a look at our themer’s guide, which will show you how to perform template overrides. The ‘All Events’ link is being displayed in ‘plugins/the-events-calendar/views/single-event.php’ on line 23, so you could perform a template override of this file and customize that link as you like.

    Hopefully that points you in the right direction. Thanks! 🙂

    -Casey-

    #336356
    cclm
    Participant

    Casey,
    Thanks. I know this and did all customizations I need, but maybe my question is not clear. The ‘All Event’ link would show all events, not that specific (Category) events. I have two categories:
    Category A
    Category B

    If a user clicks on Category-A, he will see category A events, now if they click on (All events), it will show All events and Not Category-A events. This is my problem. Is there a way to customize it to bring users back to Categories Listing as per their selection.

    If a user clicks on Category-A, and wants to go back, he should be able to go back to Category-A events.
    If a user clicks on Category-B, and wants to go back, he should be able to go back to Category-B events.
    Hope this point is clear.
    Thanks
    mouaz

    #348442
    Casey
    Participant

    mouaz,
    While I can’t provide the exact code for this customization, you should be able to use get_term_link() to get the correct URL for the Event’s Category. Something like this should do it:


    <?php echo get_term_link( $your_category_id, 'tribe_events_cat' ); ?>

    Hopefully that points you in the right direction. Thanks! 🙂

    -Casey-

    #348608
    cclm
    Participant

    Thanks indeed.

    #348688
    cclm
    Participant

    Sorry to bother you again. I could not find the php page that shows (All course) link, in which I need to add that code!!!

    #350027
    Casey
    Participant

    No worries! Take a look at my response above:

    The ‘All Events’ link is being displayed in ‘plugins/the-events-calendar/views/single-event.php’ on line 23, so you could perform a template override of this file and customize that link as you like.

    Hope that helps!

    #350639
    cclm
    Participant

    Thanks

    #350821
    Casey
    Participant

    Thanks for confirming that this got you sorted. Since it looks like you’re all set, I’m going to mark this thread “Answered” and close it out.

    Feel free to start a new thread if you have further questions.

    Thanks! 🙂

    Cheers,
    Casey

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘(All Events) Link!’ is closed to new replies.