Home › Forums › Calendar Products › Events Calendar PRO › Next month link breaks template, but refresh and it's fine
- This topic has 6 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
August 13, 2012 at 7:28 pm #23615
baynature
ParticipantI have a month view for our calendar in the works here. Looks great, except that if you hit either the next or previous month links, the template breaks and copy at the top ends up beneath the calendar and my ad doesn’t load. Refresh the page, though, and all is fine.
I figured this might be a JS conflict with my ad server, but I am getting no errors in console. and this is confirmed across FF 14, Chrome (current on Mac), and Safari 5/current.
Running WP 3.4.1 and a mess of plugins, hoping not to have to disable those until I find out if this is a known issue for EC — something with the AJAX fetching the next month? I did search the forums without success though I fear the answer is in there somewhere…
August 14, 2012 at 9:24 am #23631Barry
MemberHi Dan – could you confirm the approach you are using to insert the copy in it’s desired position?
August 14, 2012 at 9:32 am #23633baynature
ParticipantYou’re fast! I was just thinking I ought to explain that… We’re using a minimally customized ecp-page-template.php to selectively hide our default sidebar on this view, but then the view itself is made with this customized version of gridview.php, stored in /events in our theme folder:
http://pastebin.com/avEm9iCcAugust 14, 2012 at 11:07 am #23638Barry
MemberHi Dan. I think the problem here could be that you have declared two divs which share the same ID (div#tribe-events-content).
Could you try editing your customized grid view template and change the second of those divs (the one that contains your custom content)? I’ve updated your paste here http://pastebin.com/sARUSp3Z so you can see what I mean – I changed the extra div’s ID to #dans-custom-topper … of course this may mean you also need to update any related CSS rules.
That seemed to fix the problem when I tested it locally, if you could try it out and let me know that would be great …
August 15, 2012 at 11:28 pm #23727baynature
ParticipantHi Barry,
That was a dumb mistake on my part. Working now. I also had to move the ad zone out of the ECP div area. Otherwise it still disappeared on month-change, I assume because the JS for that didn’t rerun. But simply putting that div first, then the calendar div fixed it. Thanks!August 17, 2012 at 8:25 am #23767Barry
MemberGlad you’ve got it working 🙂
July 7, 2015 at 6:25 am #977567Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Next month link breaks template, but refresh and it's fine’ is closed to new replies.
