Tagged: Header Settings
-
AuthorPosts
-
March 2, 2022 at 2:27 pm #1342850
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?
March 2, 2022 at 3:11 pm #1342858Hey frankeee,
I can’t reproduce that problem on a test installation. Which version of the theme are you running?
Best regards,
RikardMarch 2, 2022 at 5:54 pm #1342882Hi 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
March 2, 2022 at 7:32 pm #1342899Hi,
Thanks for the update. The login details you posted are not working though, please check and verify.
Best regards,
RikardMarch 3, 2022 at 8:03 am #1342957Sorry, the password was not saved. Should work now – please try again.
March 4, 2022 at 12:27 pm #1343110Hi,
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,
RikardMarch 4, 2022 at 1:13 pm #1343123Ahh, ok – understand! Thank you for made it clear
March 4, 2022 at 2:42 pm #1343158If you need to set these classes dynamically – even though your header should not shrink – then there is a possibility.
March 4, 2022 at 2:56 pm #1343160thanks Guenni007, but I found a solution where my header shrink just a litte bit and the class will be added.
March 4, 2022 at 4:45 pm #1343165did 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-1186874March 4, 2022 at 5:49 pm #1343175… no, it works fine for me. Please close this thread.
March 4, 2022 at 7:21 pm #1343183Hi 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 -
AuthorPosts
- The topic ‘if "Custom pixel value" is selected – no "header-scrolled" class’ is closed to new replies.
