Additional CSS – Sticky Menu colour not changing.
-
Theme: Astra Starter Templates.
Page Builder: Elementor Free.
Cache: Cleared & Turned off for now.
CSS ID:#ast-desktop-headerI’ve followed this article – https://www.wpbeginner.com/wp-themes/how-to-create-a-sticky-floating-navigation-menu-in-wordpress/ . Initially when adding the CSS, the sticky effect would *not* work at all. Changing the “z-index” to “999” allowed it to start working showing, but the colour will not change.
Additional Troubleshooting:
https://mediatemple.net/blog/web-development-tech/why-your-custom-css-doesnt-work-in-wordpress-and-how-to-fix-it/According to the above article if “!important” is needed, it indicated that a stylesheet further down is overriding the CSS I’m editing.
The article calls for 2 plugins to be installed, one of them hasn’t been updated in 5y, so I won’t be installing the older plugin anytime soon…
How else can I troubleshoot & fix this issue?
Semi-Working code:
#ast-desktop-header {
background:black;
height:0px;
z-index:999;
margin:0 auto;
border-bottom:0px solid #dadada;
width:100%;
position:fixed !important;
top:0;
left:0;
right:0;
text-align: center;
}Thank you!
Regards,
Nerd22
The page I need help with: [log in to see the link]
The topic ‘Additional CSS – Sticky Menu colour not changing.’ is closed to new replies.