Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Simon Barnett

    (@simbasounds)

    To partially answer my own question:
    I had set up a large, extra <footer> to test pushing the sticky element up.
    I used footer as the end selector in the plugin settings. I think seeing as the site already had a <footer> lower down the post and archive pages it confused the jQuery listener.

    I changed the end selector to the CSS class of my extra footer: .bigfoot and that fixed the issue.

    This still doesn’t explain why it worked on pages but not posts. For flexibility I’d prefer to know the answer to that so I’ll leave this topic open in case there’s a quick technical explanation.

    An example of flexibility would be a site where I have a special extra footer on some pages but not others. A way to cheat this would be to include an invisible, height: 0 extra footer on all the pages that don’t require an extra footer. Then the plugin will detect something.

    Plugin Author Youdaman

    (@youdaman)

    My only guess is the selector is different for posts than pages.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Detects end too soon’ is closed to new replies.