Home › Forums › Calendar Products › Events Calendar PRO › Events Calendar and Divi Header Scroll
- This topic has 9 replies, 2 voices, and was last updated 9 years ago by Barry.
-
AuthorPosts
-
March 25, 2015 at 9:22 am #950810Dan FeeleyParticipant
We use the Divi theme from Elegant Themes and on the Events and Calendar pages the header does not shrink when you scroll as it does on all other pages.
I found this when searching ET’s support forums. http://prntscr.com/5xrxol
They said it does not work because it is a custom layout.Is there anyway to fix this issue?
March 25, 2015 at 4:50 pm #950957BarryMemberHi danfeely,
Sorry to hear you are hitting difficulties.
When I visit your main events page, the header does appear to shrink – have you since resolved this issue?
I found this when searching ET’s support forums. http://prntscr.com/5xrxol
They said it does not work because it is a custom layout.Hmm, well the highlighted class in that screenshot is prefixed “et-” so I assume is added by Elegant Themes code – and they are in the best place to advise you as to why that is added and when.
If you do still need further help, can I ask that you first of all try editing the default template setting (via the Events → Settings → Display screen)?
Thanks!
March 26, 2015 at 3:07 am #951059Dan FeeleyParticipantThis reply is private.
March 26, 2015 at 3:10 am #951060Dan FeeleyParticipantOh, just to let you know I had found that screenshot on ET’s website because someone else was having the same issue. That was their response to the user and may not be the reason behind our problem. I just wanted to submit that as to what ET was saying.
Thanks again.
March 26, 2015 at 10:34 am #951202BarryMemberIf I select “Default Page Template” it DOES work.
I suspect because an element with an ID of main-content is then present (your theme’s page template adds this). With that being the case, is there some reason you can’t use that template setting?
If you really need to use the default events template I’d recommend overriding it (see here) and adding an additional wrapper, ie instead of the following (which you will find in events/default-template.php):
<div id="tribe-events-pg-template"> <?php tribe_events_before_html(); ?> <?php tribe_get_view(); ?> <?php tribe_events_after_html(); ?> </div> <!-- #tribe-events-pg-template -->
Wrap it as follows:
<div id="main-content"> <div id="tribe-events-pg-template"> <?php tribe_events_before_html(); ?> <?php tribe_get_view(); ?> <?php tribe_events_after_html(); ?> </div> <!-- #tribe-events-pg-template --> </div> <!-- #main-content -->
However, using the default page template is arguably preferable since there may be other elements, classes and IDs besides this one that various theme scripts expect.
Does that help?
March 26, 2015 at 10:35 am #951203BarryMemberApologies, my link to the Themer’s Guide (which explains how to set up template overrides) was missing from my last reply. Please see:
March 29, 2015 at 4:09 am #951677Dan FeeleyParticipantSorry, still a little new to this but are there any downsides or issues to not using the Events Template? Or will everything still function the same?
March 30, 2015 at 7:21 am #951844BarryMemberHi!
The functionality should remain the same – one of the reasons we have that option is simply to help people find a template that meshes nicely with their particular theme.
So if the the default page template works for you and doesn’t trigger any other problems it is absolutely fine to use it 🙂
March 30, 2015 at 10:55 am #951967Dan FeeleyParticipantSounds good, thank you very much.
March 30, 2015 at 11:10 am #951970BarryMemberHappy to help 🙂
-
AuthorPosts
- The topic ‘Events Calendar and Divi Header Scroll’ is closed to new replies.