About menu text on mobile
-
wrote on Jan 22, 2021, 3:15 PM last edited by
Hey I need a little help. I would like to have the menu text white on the about page, for the desktop version I used the following code. My question how do I get the same effect for the mobile version?
/* navigation */
body.slug-info nav.primary a{
color: white;
}https://www.danielniederkofler.com/
Any help and advice appreciated!
-
wrote on Jan 22, 2021, 6:45 PM last edited by Baptiste Jan 22, 2021, 1:46 PM
Hello @Daniel1234, did you try that?
@media (max-width: 600px){ .id-18 .navbar {background-color: black;} .id-18 nav.mobile-nav li a span {color: white;} }
-
wrote on Jan 27, 2021, 2:52 PM last edited by
Thank you for the reply.Unfortunately it does not really work, the menu text on the about page just turns black
-
-
Thank you for the reply.Unfortunately it does not really work, the menu text on the about page just turns black
wrote on Jan 29, 2021, 11:08 AM last edited byHey @Daniel1234 ,
Did you try with !important?
Like:
@media (max-width: 600px){ .id-18 .navbar {background-color: black !important;} .id-18 nav.mobile-nav li a {color: white !important;} }
When I try with the dev tool it works for me.
Let me know.
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
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