WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Events Calendar / Generic Previous/Next links (4 posts)

  1. johndove523
    Member
    Posted 1 year ago #

    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

  2. johndove523
    Member
    Posted 1 year ago #

    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

  3. jonahcoyote
    Member
    Posted 1 year ago #

    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!

  4. johndove523
    Member
    Posted 1 year ago #

    Jonah,

    Beautiful! Thanks so much!

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

    John

Topic Closed

This topic has been closed to new replies.

About this Topic