Next month link breaks template, but refresh and it's fine

Home Forums Calendar Products Events Calendar PRO Next month link breaks template, but refresh and it's fine

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #23615
    baynature
    Participant

    I 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…

    #23631
    Barry
    Member

    Hi Dan – could you confirm the approach you are using to insert the copy in it’s desired position?

    #23633
    baynature
    Participant

    You’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/avEm9iCc

    #23638
    Barry
    Member

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

    #23727
    baynature
    Participant

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

    #23767
    Barry
    Member

    Glad you’ve got it working 🙂

    #977567
    Support Droid
    Keymaster

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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Next month link breaks template, but refresh and it's fine’ is closed to new replies.