Home › Forums › Calendar Products › Events Calendar PRO › Single Event Pages: Previous/Next Events
- This topic has 16 replies, 6 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
January 21, 2012 at 3:38 pm #13766
hc2ca
ParticipantRecently upgraded from the free to the pro version, and encountered an error that is visible on all single event pages. Specifically, below the description of the event I can see the title of a previous event below/left, and a the title of a next event below/right. The titles appear all by themselves, and are without any descriptors indicated that they represent upcoming/past events. Just wondering how/where I can go to delete these from the single post views.
January 22, 2012 at 9:59 am #13783Sheila
ParticipantI’m brand new to this also and have a related question. Hope you don’t mind my adding it here as the response to your question will also address my question.
I see these two links within the plugin display AND also see my theme’s version of the next/previous links below that. I’d like to completely removed the Event generated version. I don’t want duplicates and my theme links are nicely formatted to match my site.
January 22, 2012 at 10:16 am #13785Samuel
MemberI’m just an ecp user user/modder having a sunday coffee and checking out the forum, so please wait for official support if that concerns you.
To remove those links: If you havn’t already done so, you would have to copy the single.php file from wp-content/plugins/the-events-calendar/views to wp-content/themes/yourthemedirectory/events and then edit the file and remove/comment out near the bottom of it:
January 22, 2012 at 10:18 am #13786Samuel
MemberAh, cant post html, right.
tribe_previous_event_link(); and tribe_next_event_link(); including the wrapping div.
January 22, 2012 at 10:19 am #13787Sheila
ParticipantThanks Samuel. I’ll try this. I’m wondering if we start editing these php files if we aren’t going to have issues on updates though. I’ve been looking for more documentation on customizations in general (both css and php). Can you point us in the right direction? Thanks so much.
January 22, 2012 at 10:26 am #13788Sheila
ParticipantYup…that did the trick. I will go start my own thread with questions as I have many. I’ve been trying to research first to be sure they’re not too stupid! It seems most of what I’m needing is all custom stuff and as a designer I need direction when editing code. Thank you so much. At this this one thing is off my list.
January 22, 2012 at 10:30 am #13789Samuel
MemberTheir documentation covers this in the faq. If you scroll down to the Customization area of the FAQ you will find info on this.
https://theeventscalendar.com/support/faqs/
Now, from my experience, generally they dont change those files too much, but, if customizing them you should monitor changelogs and when the template file itself is modified you would have to re-port your customizations to get the new functionality.
January 22, 2012 at 10:30 am #13790Samuel
MemberPosted at same time! Cool, glad you sorted it!
January 22, 2012 at 2:06 pm #13796hc2ca
ParticipantThanks Samuel! I couldn’t get the result by placing single.php into the theme directory, but it worked when I replaced the file in wp-content/plugins/the-events-calendar/views.
January 22, 2012 at 2:45 pm #13800Samuel
MemberTo have your custom ECP files loaded they must be put in a folder you create called “events” in the theme directory. if it didn’t load from that location there is some issue with the install. Since you have modified the plugin file directly be aware that on the next upgrade of ECP you will lose that customization!
January 23, 2012 at 10:32 am #13852Rob
MemberSamuel: you rock! Thanks for what you’ve shared here…it looks like you helped out not one but two users who were having problems, which is awesome. We appreciate it big time!
Hc2ca/Sheila: if I understand correctly, you should both be set here…but let me know if I’m wrong there and if there’s anything else you need from us in an official capacity.
January 23, 2012 at 3:14 pm #13907hc2ca
ParticipantRob, totally set.
January 24, 2012 at 11:08 am #13973Rob
MemberAwesome to hear; thanks for confirming, hc2ca. Sheila: assuming you’re all good here too, but let me know if not.
March 9, 2012 at 6:22 pm #16565Lynn
ParticipantDoes this hack still work for 2.0.4? I’m finding it’s not working, or is it that I’m using Thesis, and Thesis is adding the previous and next links? Previous & next links use the datestamp on when the event is added to the calender, not in order according to event date, very confusing for the visitor to the site. I’d rather remove the previous & next links altogether. How can that be done now? Thanks!
March 9, 2012 at 6:38 pm #16567Lynn
ParticipantI removed all previous & next (probably removes them for the entire site, not just the events section) by putting into the custom.css file for thesis:
.custom .prev_next p {
display: none;
}
What is the events page specific template name so I could specify removing previous and next links just for events pages single display? Thanks. -
AuthorPosts
- The topic ‘Single Event Pages: Previous/Next Events’ is closed to new replies.
