• When the Notification Bar is set to sticky. The notification bar cannot detect other sticky elements. So with our navigation being sticky and the notification bar being sticky, the notification bar sits underneath the navigation.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have a similar issue. I wonder if this plugin is still supported. It hasn’t been updated in 11 months or tested with the latest version of WordPress.

    Plugin Author WPExplorer

    (@wpexplorer)

    Hi,

    Sorry for the delayed reply. I wasn’t getting the email notifications from ww.wp.xz.cn when people were leaving comments.

    This plugin uses modern CSS for sticky positioning via position: sticky; instead of relying on complex JavaScript. I chose this approach to avoid the added bloat that comes with extra JS files and scroll event listeners. This means that the notification bar is made sticky by the browser which doesn’t have any methods for detecting other sticky elements.

    But even if JavaScript were used for the notification bar, it wouldn’t be able to reliably detect and adjust for sticky elements created by your theme or third-party plugins. That’s because sticky implementations vary widely—some themes only show sticky headers when scrolling up, while others shrink them on scroll.

    So, if you have other sticky elements on your site, you will need to add the proper offsets to those other sticky elements. If your sticky menu is part of the theme and it uses custom javascript for the sticky position, simply contact the theme developer and ask how you can offset the notification bar.

    That said, if you are using my Total theme – the notification bar should be offset automatically as I have code in my theme to do this. If this is the case and it’s not working as expected, please let me know in the ThemeForest comments and share the URL so I can see what’s going on!

    • AJ

    ps: The reason the plugin hasn’t been updated in a while is because there hasn’t been a need for any updates 😉

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Sticky Issue’ is closed to new replies.