Home › Forums › Calendar Products › Events Calendar PRO › Changing Breadcrumb type Event links from …/eventsdefault to calendar page
- This topic has 6 replies, 2 voices, and was last updated 8 years, 9 months ago by
Michael.
-
AuthorPosts
-
July 14, 2017 at 9:26 am #1321252
Michael
ParticipantMy main monthly calendar page is a custom page …../events which includes some text and the [tribe_events view=”month”] shortcode. This page includes the standard header and main menu.
When viewing single events or the sidebar event listing and clicking on links that say “Back to Events” or “View More” the link is to …/eventsdefault, which does not include a header of menu. I see in Settings that “eventsdefault” is defined as the Events URL slug. If I change that setting to “events”, it overrides my /events page for the site. How can I make this work so that my custom events page works and the links also go to my custom page rather than the default page?
I hope this makes sense!
July 17, 2017 at 9:11 am #1322149Andras
KeymasterHello again Michael,
Thanks for reaching out!
I believe the easiest would be to use redirection with plugin and redirect the /eventsdefault slug to /events .
Would this solve it for you? Let me know.
Cheers,
AndrasJuly 17, 2017 at 11:23 am #1322232Michael
ParticipantHello András,
I hadn’t considered using a redirect plugin. I tested one and it seems to work. However, I do try to minimize my plugins. Is there no way within TEC settings to have the event slug access a custom page without confusing the whole setup?
Thanks
July 18, 2017 at 8:30 am #1322676Andras
KeymasterHi Michael,
Meanwhile I also had discussions if there is another solution, without a plugin.
Try pasting this snippet into your functions.php file and see if it does the trick.
https://gist.github.com/andrasguseo/91c86e787b8fc09514e1c52bb7323b2a
It should adjust all links that would point to the main calendar page. Of course, change the URL so it fits your needs.
Does this do the trick?
A.
July 21, 2017 at 8:06 am #1324332Michael
ParticipantAndrás (and Barry Hughes),
The PHP snippet solved the issue for me. Thank you for providing an alternative to the redirection plug-in.
Mickey Diener
July 25, 2017 at 5:47 am #1325681Andras
KeymasterMickey, I’m stoked to hear it works out for you! I forwarded your props to Barry already.
Since the issue is resolved I am going to close this ticket, but if you need anything else related to this topic or another please post a new one in the forum and we will be happy to help you out.
Good luck with your project!
Cheers,
AndrasPS: If you like our plugins, and you didn’t yet do so 🙂 we would be happy to receive a review in the wordpress.org repository. Thanks!
https://wordpress.org/support/plugin/the-events-calendar/reviews/PS2: We’d be also grateful if you would give us feedback on your satisfaction with support. Just click on one of the classy looking emojis below. 🙂 If you can spare a few words, that’s even better. Doublethanks!
-
AuthorPosts
- The topic ‘Changing Breadcrumb type Event links from …/eventsdefault to calendar page’ is closed to new replies.
