www.webdeveloper.com
Results 1 to 6 of 6

Thread: .php modification on previous/next links

  1. #1
    Join Date
    Sep 2006
    Posts
    79

    .php modification on previous/next links

    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 (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:

    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

  2. #2
    Join Date
    May 2004
    Location
    chennai, tamil nadu, India
    Posts
    447
    You need to find the file containing the php functions tribe_previous_event_link and tribe_next_event_link and then modify them.
    Chris, Senior Developer,
    Php laravel developers,
    www.chrisranjana.com

  3. #3
    Join Date
    Sep 2006
    Posts
    79
    Yes. I know that. I've found the file, posted the exact .php in question here, and I need to how to modify it.

  4. #4
    Join Date
    May 2004
    Location
    chennai, tamil nadu, India
    Posts
    447
    No, I meant the file containing the definition of the functions... like function tribe_previous_event_link and function tribe_next_event_link
    Chris, Senior Developer,
    Php laravel developers,
    www.chrisranjana.com

  5. #5
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,362
    In other words, the file that has something like:
    PHP Code:
    function tribe_previous_event_link()
    {
       
    // stuff here that does the processing and then presumably echoes the link

    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  6. #6
    Join Date
    Sep 2006
    Posts
    79
    I searched the entire Event Calendar plugin directory and found only a single file containing "tribe_previous_event_link", it's the same file that I plucked the code from in my original post here (file is attached). There is an opening comment in this file that seems to suggest an answer...

    "* You can customize this view by putting a replacement file of the same name (single.php) in the events/ directory of your theme.
    */

    If this looks like the thing to do, I'm using a custom theme which doesn't have an events/ directory...can you tell me exactly what I need to do?

    Thanks guys.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles