Hide previous events & next events links when using [tribe_events] shortcode

Home Forums Calendar Products Events Calendar PRO Hide previous events & next events links when using [tribe_events] shortcode

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1321480
    Patricia McIlvaine
    Participant

    Hi –

    I’m wondering if the links for previous and next events can be hidden when using the [tribe-events] shortcode. I’ve used the snippet of code provided in this topic: https://tribe.uservoice.com/forums/195723-feature-ideas/suggestions/17229266-add-limit-x-option-to-photo-view-shortcode to limit the events to 3 for the homepage. These links don’t work with this workaround. Thanks!

    #1322368
    Victor
    Member

    Hello Patricia!

    Thanks for getting in touch with us! 🙂 Let me try to help you with that.

    If you want to remove the previous/next navigation you can do so by doing a template customization. In our themer’s guide > https://theeventscalendar.com/knowledgebase/themers-guide/ you can learn how to customize our templates.

    For example, if you want to remove the previous/next navigation from the list view, you can do the following:

    • Make a copy of the content.php template file. It is located at wp-content/plugins/the-the-events-calendar/src/views/list/content.php
    • Make a new folder in your theme called tribe-events
    • Make a new folder in that one called list
    • Drop your copied content.php file in that last folder

    Now that the template is in your theme, you can modify it to suit your needs. In this case, comment out or completely eliminate line 42 and 63 where the navigation templates are called.

    Will this work for you? Please let me know.

    Best,
    Victor

    #1332252
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Hide previous events & next events links when using [tribe_events] shortcode’ is closed to new replies.