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

  • Resolved johndove523

    (@johndove523)


    Hi,

    Please see URL: http://caspca.org/wordpress/event/crafts-for-critters/

    For the previous/next links, the actual name of the event is displayed. 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. Can someone tell me how?

    Thank you,

    John

Viewing 3 replies - 1 through 3 (of 3 total)
  • johndove523

    (@johndove523)

    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,

    John

    jonahcoyote

    (@jonahcoyote)

    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%');

    or

    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!

    johndove523

    (@johndove523)

    Jonah,

    Beautiful! Thanks so much!

    http://caspca.org/wordpress/event/volunteer-orientation/

    John

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