Home › Forums › Calendar Products › Events Calendar PRO › Mega menu error just on Events Page.
- This topic has 11 replies, 2 voices, and was last updated 11 years, 5 months ago by
Barry.
-
AuthorPosts
-
October 24, 2014 at 2:37 pm #833435
apmike
ParticipantHey 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.October 24, 2014 at 3:52 pm #833603Barry
MemberHi 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!
October 27, 2014 at 7:23 am #840515apmike
ParticipantHey Barry.
Yes – that fixes it, but the events don’t show up or show up correctly.
Any thoughts? Thanks. mmOctober 27, 2014 at 9:20 am #840972Barry
MemberCan 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?
October 27, 2014 at 9:31 am #840992apmike
ParticipantHey 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.October 27, 2014 at 10:35 am #841193Barry
MemberAh, 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.
November 3, 2014 at 7:30 am #857974apmike
ParticipantBarry.
The theme developers were no help… at all.
Anything we can do?
Thanks. mmNovember 3, 2014 at 3:45 pm #858674Barry
MemberWell, let’s take another look. Can you revert to the Default Events Template? I’ll see if any other ideas present themselves. Thanks!
November 4, 2014 at 8:09 am #860003apmike
ParticipantThis reply is private.
November 5, 2014 at 6:15 am #862017Barry
MemberThanks 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?
November 5, 2014 at 6:16 am #862021Barry
Member(Apologies, I meant to provide a link to our Themer’s Guide – it can be found here.)
November 18, 2014 at 9:00 am #889275Barry
MemberHi! 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!
-
AuthorPosts
- The topic ‘Mega menu error just on Events Page.’ is closed to new replies.
