Navbar
-
I have my menu bar set to move away when scrolling down - however I'm looking to fix it on one specific page and change the navbar colour on said specific page.
I have seen on a previous thread this code was suggested for a fixed navbar
.navbar{
position:initial !important;
}I've also applied this code to try and change colour a specific nav bar
body[data-type="page"][data-id="990"] .navbar{
background-color: #ffffff !important;
}I also tried to combine the two
body[data-type="page"][data-id="990"] .navbar{
position:initial !important;
background-color: #ffffff !important;
}but unfortunately no joy - can you help?
Cheers
Toby -
@alasdair17 said in Navbar:
body.slug-about .navbar{
background-color: #ffffff !important;
}
body.slug-about .navbar{
position: initial !important; !important;
}Great!
Thanks Alistair -
for the next update the navbar, site title and menu will be hidden away by using transform: translateY()
for better performanceyou'll probably then want to do:
body.slug-about .navbar{ transform: translateY(0)!important; }
-
ah ok thanks Armin.
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it