Single Event Pages: Previous/Next Events

Home Forums Calendar Products Events Calendar PRO Single Event Pages: Previous/Next Events

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #13766
    hc2ca
    Participant

    Recently 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.

    #13783
    Sheila
    Participant

    I’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.

    #13785
    Samuel
    Member

    I’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:

    #13786
    Samuel
    Member

    Ah, cant post html, right.

    tribe_previous_event_link(); and tribe_next_event_link(); including the wrapping div.

    #13787
    Sheila
    Participant

    Thanks 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.

    #13788
    Sheila
    Participant

    Yup…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.

    #13789
    Samuel
    Member

    Their 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.

    #13790
    Samuel
    Member

    Posted at same time! Cool, glad you sorted it!

    #13796
    hc2ca
    Participant

    Thanks 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.

    #13800
    Samuel
    Member

    To 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!

    #13852
    Rob
    Member

    Samuel: 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.

    #13907
    hc2ca
    Participant

    Rob, totally set.

    #13973
    Rob
    Member

    Awesome to hear; thanks for confirming, hc2ca. Sheila: assuming you’re all good here too, but let me know if not.

    #16565
    Lynn
    Participant

    Does 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!

    #16567
    Lynn
    Participant

    I 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.

Viewing 15 posts - 1 through 15 (of 17 total)
  • The topic ‘Single Event Pages: Previous/Next Events’ is closed to new replies.