
-
AuthorPosts
-
December 4, 2019 at 11:27 am #1162529
Good morning.
I hope you can help me. I am new to Enfold and pretty new to changing CSS, I have been trying to change the navigation menu colour which I have succeeded in doing following reading the forum using the following code, however on mobile it looks wrong as the menu turns to a block of colour, is there a way to make the mobile menu the default colour?
The search bar is also now not visible in the menu as its blended with the colour.#top #header .av-main-nav > li > a {
background-color: #076872 !important;
}
#top #header_main_alternate {
background-color: #076872 !important;
}
#top #header .av-main-nav > li > a .avia-menu-text, #top #header .av-main-nav > li > a .avia-menu-subtext {
color: #ffff!important;
}
#top #header #avia-menu > li:hover > a {
background: #dcdcdd !important;
border: 0 !important;
}#top #header #avia-menu > li:hover > a span.avia-menu-text {
color: #076872 !important;
border: 0 !important;
}Thank you very much.
December 4, 2019 at 5:40 pm #1162672Hey LizSomerville,
Best regards,
VictoriaDecember 9, 2019 at 10:32 pm #1164216Hi – I sent the link again vie private content, did you receive it?
Thanks
December 10, 2019 at 5:50 am #1164318Hi,
This is the CSS which is causing that to happen:
#top #header .av-main-nav > li > a { background-color: #4a6d7c !important; }
I can’t see exactly where it’s added, but it looks like it’s added on the front page. Maybe it would be better if you made change to the menu through the theme options under Enfold->Advanced Styling?
If you want to target mobile screens then please add your CSS in a media query:
@media only screen and (max-width: 767px) { Your mobile styles go here }
Also remove !important from your initial styles, as they likely won’t change on mobile otherwise.
Best regards,
RikardDecember 10, 2019 at 1:27 pm #1164383Thank you – I added the CSS as the advanced styling wasn’t working – but it does seem to be now. Thank you. Just need to try to get the font colour to change now, should that work in the advanced styling too?
(Sorry for the million questions)
ThanksDecember 10, 2019 at 4:27 pm #1164488 -
AuthorPosts
- You must be logged in to reply to this topic.