Changing Breadcrumb type Event links from …/eventsdefault to calendar page

Home Forums Calendar Products Events Calendar PRO Changing Breadcrumb type Event links from …/eventsdefault to calendar page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1321252
    Michael
    Participant

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

    #1322149
    Andras
    Keymaster

    Hello 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,
    Andras

    #1322232
    Michael
    Participant

    Hello 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

    #1322676
    Andras
    Keymaster

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

    #1324332
    Michael
    Participant

    Andrá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

    #1325681
    Andras
    Keymaster

    Mickey, 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,
    Andras

    PS: 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!

     

     

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Changing Breadcrumb type Event links from …/eventsdefault to calendar page’ is closed to new replies.