Show / Hide Menu (Multiple Menus)
-
Re: Show/hide menu
Hi @arminunruh!
Is there a way to hide the 2nd 3rd and 4th menu using css?
Like you did in the post above with the primary menu using nav.primary.Greets, Paul
-
Already figured it out! :)
By using:
body[data-type="page"][data-id="10"] nav{
display: none !important;
} -
Dear @Paul_Moxie
yea! Thank you for sharing!Best!
Marius -
Hi @Paul_Moxie and @mariusjopen ,
display: none and visibility: hidden both worked for me with hiding a secondary menu on certain pages, thank you!
I've been trying to hide a menu everywhere -except- on certain pages. I was wondering whether you had a trick for that. I tried several different ways such as :
In the main body:
nav.fourth_menu{
visibility: hidden !important ;
}body[data-id="1"][data-type="category"]{
nav.fourth_menu{
visibility: visible !important ;
}But so far no success. If you have any suggestion I'd be most grateful, thanks!
-
Actually, I think I had a ' { ' too much. This is working for me now!
nav.fourth_menu{
visibility: hidden !important;
}body[data-id="4"][data-type="category"]
nav.fourth_menu{
visibility: visible !important;
} -
Dear @tortue771
great! Thank you for sharing!Marius
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