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 -
@Toby hey, try this:
body.slug-about .navbar{
background-color: #ffffff !important;
}body.slug-about .navbar{
position: initial !important; !important;
}but change the word, 'about' to the name of your page.
-
@alasdair17 said in Navbar:
body.slug-about .navbar{
background-color: #ffffff !important;
}
body.slug-about .navbar{
position: initial !important; !important;
}Great!
Thanks Alistair -
@Toby you're welcome :)
-
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.
I don't answer or check forum DMs, please just post on the forum.
Before you post:
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. Now see if your problem solved itself
5. Go here, see if your problem is listed here:
Troubleshooting
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it