Tagged: Header Settings
Enfold Theme Options / Header, these settings:
Header Layout: Slim
Header behavior: Sticky Header and Shrinking Header
… when we scroll the page i get the class “header-scrolled!
Enfold Theme Options / Header, these settings:
Header Layout: Custom pixel value
Header behavior: Sticky Header and Shrinking Header
… when the page is scrolled I do NOT get the class “header-scrolled”
Just because I chose “Custom pixel value” I don’t get a header-scrolled” class? Is this a bug?
Hey frankeee,
I can’t reproduce that problem on a test installation. Which version of the theme are you running?
Best regards,
Rikard
Hi Rikard,
I´m running the latest Enfold version, latest WP version. To be on the safe side, I also deactivated my child theme. But even without child, no ” class “header-scrolled” as soon as the option “Custom pixel value” is activated.
Just so we understand each other correctly: the class header-scrolled would have to be written dynamically in the <header> tag.
If you can’t replicate this, see private content
Hi,
Thanks for the update. The login details you posted are not working though, please check and verify.
Best regards,
Rikard
Sorry, the password was not saved. Should work now – please try again.
Hi,
Thanks for that. The header scrolled class won’t be added to the header if it’s set to a specific pixel value, since the header won’t change its size if that is the case. That class will only be added if you have a shrinking header for example.
Best regards,
Rikard
Ahh, ok – understand! Thank you for made it clear
If you need to set these classes dynamically – even though your header should not shrink – then there is a possibility.
thanks Guenni007, but I found a solution where my header shrink just a litte bit and the class will be added.
did you have a child-theme avia-snippet-sticky-header.js
and value calculation like here: https://kriesi.at/support/topic/shrinking-of-header-amount-an-info/#post-1186874
… no, it works fine for me. Please close this thread.
Hi frankeee,
Great, I’m glad that you found a solution which works for you. I’ll go ahead and close this thread for now then, please open a new thread if you should have any further questions or problems.
Best regards,
Rikard