Support » Plugins » Events Calendar / Generic Previous/Next links

Viewing 3 replies - 1 through 3 (of 3 total)
  • For the previous/next links, the actual name of the event is displayed (in the main post, not the sidebar widget). I don’t think this is terribly intuitive to the viewer. I would like to replace the event titles with more generic “previous event” and “next event” links. I don’t know enough .php to know how to modify the code:

    <div class="navlink previous"><?php tribe_previous_event_link();?></div>
    <div class="navlink next"><?php tribe_next_event_link();?></div>

    Can someone please specify exactly how to modify?

    Thank you,


    Hi John,

    Sorry about the delay on getting to this. All you’ve got to do to modify these links is find the file /wp-content/plugins/the-events-calendar/views/single.php and make a copy, placing in an ‘events’ folder in your theme. Fire the file up in your favorite text/code editor and find the functions towards the bottom of the file. Within the parentheses, you can pass in whatever you want to display. For example:

    tribe_previous_event_link('&laquo; Previous Event: %title%');


    tribe_next_event_link('Next Event &raquo: %title%');

    If you don’t want the title to display, just remove %title% and modify accordingly. I hope that helps!


    Beautiful! Thanks so much!


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Events Calendar / Generic Previous/Next links’ is closed to new replies.