Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Class on page scroll ?

Home / Forums / Virtue Theme / Class on page scroll ?

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
April 16, 2018 at 7:05 pm

Hey Ben hope all is good with you?

There is a “.sticky-wrapper.is-sticky” class available for the header when the sticky header is switched to on and the user scrolls the page.

However, there does not appear to be any way to access this outside of the header when the page is scrolled. For instance, if I want to adjust .page-header margins when the .is-sticky is active, that’s not easy without JS because the .is-sticky class is confined to the header.

I can use something like the below to add a class on scroll, but just curious to know if there is another theme built-in html or body class that I can access and use on page scroll ?

It seems your sucuri firewall won’t let me paste code.

  • The forum ‘Virtue Theme’ is closed to new topics and replies.