Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.

    #1162672

    Hey LizSomerville,

    Best regards,
    Victoria

    #1164216

    Hi – I sent the link again vie private content, did you receive it?

    Thanks

    #1164318

    Hi,

    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,
    Rikard

    #1164383

    Thank 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)
    Thanks

    #1164488

    Hi,

    Please go to Enfold theme options > Advanced Styling and edit “Menu Links in overlay/slide out” :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.