How can I hide the active menu link from the menu on mobile?
-
Hello, I would like to hide the link for the active site from the burger menu. How can I do this?
Thank you!
-
Dear @piero101
have a look here:.mobile-nav .current-menu-item { display: none !important; }
Best!
Marius
-
Thank you! You guys rock! :)
-
@mariusjopen
I tried to use the same classes to change the color of the current-menu-item, but somehow it doesn't show an effect. I first tried your code with display:none and it worked, but as soon as I change it to color: it wouldn't work..mobile-nav .current-menu-item { color: #ff494f !important; }
Do you know, what I could have forgotten? Or is the color defined somewhere else?
Thx -
Dear @marcelgross
inspect the CSS. You can see that there is a span element inside it. You need to give a colour to that element.Best!
Marius
-
@mariusjopen Thanks! I should have got this on my own... beginners fault. But I'm very happy about your perfect support even with this little details!
-
Need custom programming for your Lay Theme site?
I regularly add new features to Lay Theme for free, based on user feedback. But if you or your client need something more specific, I’m happy to offer custom paid programming tailored to your project.
Email info@laytheme.com with the subject "Custom paid programming for Lay Theme" and a short description of what you need — I’ll reply with a cost estimate.
Custom features I build often make it into future Lay Theme updates, so your idea might benefit the whole community.
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