Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1430053

    In the main menu I want to change the background color of each item individually, as in the following link: https://www.birdsafephilly.org/

    • This topic was modified 9 months, 1 week ago by Rocuant.
    #1430061

    Hey Rocuant,
    First enable the css classes in the menu items by selecting this option in the menu screen options:
    Enfold_Support_4470.jpeg
    Then add a custom class like “red” to the menu item:
    Enfold_Support_4472.jpeg
    Then add CSS for the menu background color in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field like this:

    .red {
    	background-color: red;
    }

    If you want the text color to also be different, like white, add this:

    .red .avia-menu-text {
    	color: white;
    }

    This is the expected results:
    Enfold_Support_4474.jpeg
    Then do this for each item.

    Best regards,
    Mike

    #1430069

    It works perfect with name colors, but I´d like to add personalized colors like #F6BFCA, ¿it is possible?

    • This reply was modified 9 months, 1 week ago by Rocuant.
    #1430072

    Hi,
    Yes, use a unique class name and add your hex color code to the css, like this:

    .my-hex-color {
    	background-color: #F6BFCA;
    }

    Best regards,
    Mike

    #1430074

    ¿What do you mean by class name?. I have added to “Quick CSS” .my-hex-color { background-color: #F6BFCA;}, but in “Menu structure”, CSS classes, instead of name colors, ¿what should I add? in order to have a different color for each menu item

    • This reply was modified 9 months, 1 week ago by Rocuant.
    • This reply was modified 9 months, 1 week ago by Rocuant.
    #1430076

    Hi,
    In the menu item add your unique class name like my-hex-color
    Enfold_Support_4488.jpeg
    Then in your Quick CSS add:

    .my-hex-color {
    	background-color: #F6BFCA;
    }

    create a new class name for each new color.

    Best regards,
    Mike

    #1430083
    This reply has been marked as private.
    #1430085

    Hi,
    Please note that each class needs to be unique, like this:

    .my-hex-color-one {
    background-color: #F6BFCA;
    }
    
    .my-hex-color-two {
    background-color: #F2DFD7;
    }
    
    .my-hex-color-three {
    background-color: #F6BFCA;
    }
    
    .my-hex-color-four {
    background-color: #F2DFD7;
    }
    
    .my-hex-color-five {
    background-color: #F6BFCA;
    }
    
    .my-hex-color-six {
    background-color: #F2DFD7;
    }

    and the class that you add into the menu Clases CSS should match the color that you want.

    Best regards,
    Mike

    #1430101

    It works perfect! Thank you very much!

    #1430103

    Hi,

    Glad to know that @Mike was able to help you out! Please feel free to open another thread if you have more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Menu items background color’ is closed to new replies.