.php modification on previous/next links
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:
Can someone please specify exactly how to modify?
<div class="navlink previous"><?php tribe_previous_event_link();?></div>
<div class="navlink next"><?php tribe_next_event_link();?></div>
You need to find the file containing the php functions tribe_previous_event_link and tribe_next_event_link and then modify them.
Yes. I know that. I've found the file, posted the exact .php in question here, and I need to how to modify it.
No, I meant the file containing the definition of the functions... like function tribe_previous_event_link and function tribe_next_event_link
In other words, the file that has something like:
// 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
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
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?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)