Mega menu error just on Events Page.

Home Forums Calendar Products Events Calendar PRO Mega menu error just on Events Page.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #833435
    apmike
    Participant

    Hey there.
    We are testing the events plugin and woocommerce tickets on a new site and are running into trouble on the events/calendar page. Our theme utilizes a mega menu, and it breaks completely only on the events/calendar page.

    #833603
    Barry
    Member

    Hi apmike,

    Sorry to hear you’re having difficulties.

    It looks like you are currently using the Default Events Template: I’m curious – if you switch things to the Default Page Template (via the Events > Settings > Display admin screen) does this improve things with regard to Mega Menu at all?

    Let me know!

    #840515
    apmike
    Participant

    Hey Barry.
    Yes – that fixes it, but the events don’t show up or show up correctly.
    Any thoughts? Thanks. mm

    #840972
    Barry
    Member

    Can you describe what you are seeing when you make that change? I’m not quite sure I can picture what’s happening based on your description (I did take another peek at your site and it looks like you are still on the Default Events Template).

    Would it be possible to leave the Default Page Template enabled so I can see what you are experiencing, either on this site or a duplicate test/staging site if you have one?

    #840992
    apmike
    Participant

    Hey Barry.
    Sorry about that – the default page template is now enabled.
    When enabled the page just displays a paragraph instead of the event info being laid out nicely with search and toggles. Let me know what you think.

    #841193
    Barry
    Member

    Ah, I see.

    We have indeed seen this before and for some common themes such as Genesis and Canvas we even have a couple of fixes.

    The basic problem in these cases is that the theme is taking the event page and turning it into an excerpt – which means it is both shortened and any markup (which is vital to the proper structure of our pages) is removed.

    Sometimes this is triggered within a theme when it detects that a post type archive has been requested (ie, an archive of events). Would it be possible  to reach out to the theme author and ask if that is the case here – and, if so, if there is a way to toggle or override this so that it doesn’t switch to excerpts within post type archives?

    If they could even provide you with a basic starting point we could probably help you to refine it so that it only impacts event pages.

    #857974
    apmike
    Participant

    Barry.
    The theme developers were no help… at all.
    Anything we can do?
    Thanks. mm

    #858674
    Barry
    Member

    Well, let’s take another look. Can you revert to the Default Events Template? I’ll see if any other ideas present themselves. Thanks!

    #860003
    apmike
    Participant

    This reply is private.

    #862017
    Barry
    Member

    Thanks for your patience!

    Looks like this stems from a type error in your theme’s JS. Switching to the default page template resolves this, but of course we hit the other problem you raised where the events content is condensed and stripped of formatting.

    Here’s what I propose:

    • Please review our Themer’s Guide for an overview of safely overriding and customizing our templates
    • Locate plugins/the-events-calendar/views/default-template.php
    • Make a copy of this and place it within your theme, ie themes/YOUR_THEME/tribe-events/default-template.php
    • Within your own copy of the template locate these lines and change them slightly so they look like this (the rest of the template should remain the same)

    While I can’t test this out directly so am unable to offer any guarantees here, I suspect it will resolve the type error and – hopefully – solve the menu issue as an extension of that.

    Does this help at all?

    #862021
    Barry
    Member

    (Apologies, I meant to provide a link to our Themer’s Guide – it can be found here.)

    #889275
    Barry
    Member

    Hi! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks!

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Mega menu error just on Events Page.’ is closed to new replies.