Linking ("all events") link to custom category

Home Forums Calendar Products Events Calendar PRO Linking ("all events") link to custom category

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #969174
    Justin
    Participant

    events cal

    As noted in the pic above I would like to link the “all events” link to my custom calender and not to the main calendar.

    Thanks

    #969309
    George
    Participant

    Hey Davin,

    The first thing I’d recommend for making a customization like this is to read our official Themer’s Guide here → https://theeventscalendar.com/knowledgebase/themers-guide/

    That will show you how to make custom versions of The Events Calendar view files in your theme, so that you can make customizations in a way where things won’t break if you update your plugins in the future.

    Using the principles there, the file you’ll want to customize is views/single-event.php (and, if you’re using the new version 3.10, then it’s src/views/single-event.php.

    The “All Events” link is around line 26 or 27 or so, starting with this line of code:

    
    <p class="tribe-events-back">
    

    You’ll see the link constructed here, and from there it’s all up to you how to build out the category link. You can use something like The Events Calendar’s own tribe_get_event_taxonomy() function, or you can use WordPress core functions like get_term_link().

    Make a good backup of things before you start, read through that themer’s guide to learn the safest way to make customizations like this, and read any Events Calendar code directly if you’re not sure how something is put together. I’m sure if you play around with things, you’ll make something quite useful for your site.

    Cheers!
    George

    #984314
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Linking ("all events") link to custom category’ is closed to new replies.