Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #647799

    I can change this in the theme settings, but i want to add it to my child theme, so i can easily re-use etc.

    I can’t figure this out I’ve tried a tonne of different possibilities from searching the forums.

    What do i add to my child themes, style.css to change the font colour of the main menu, when it is hovered over?

    Thanks

    #647801

    I think i’ve made some progress , i have this code in my child style sheet

    #avia-menu .avia-menu-text {
        font-size: 12px ;
    	color: red   ; 
    }
    
    #top .main_menu .menu li a:hover { background-color: #6ab2b5; color: white !important; }
    

    The first bit of code, changes the font size of the menu item, and changes the colour of the text.
    The second bit of code changes the styling for the menu item when it’s hovered.

    I’ve discovered if i take the color statement out of the first bit of code so have this instead

    #avia-menu .avia-menu-text {
        font-size: 12px ;
    	}
    
    #top .main_menu .menu li a:hover { background-color: #6ab2b5; color: white !important; }

    Now the font colour changes as desired when it’s hovered over.
    So the first colour statement seems to be applying to hover and normal state.

    How do i fix this?

    thanks

    • This reply was modified 8 years, 6 months ago by spleeky.
    #647805

    Finally fixed it.

    #top .main_menu a {
    color: red ;
    }
    
    #top .main_menu .menu li a:hover { background-color: #6ab2b5; color: white ; }

    did the trick

    #648380

    Hi,

    Great, glad you got it working and thanks for sharing your solution. You can also change that under Enfold–>Advanced Styling.

    Thanks,
    Rikard

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