WordPress.org

Ready to get started?Download WordPress

Forums

Change background color from menu item (4 posts)

  1. efogtman
    Member
    Posted 1 year ago #

    Hi, in this website http://www.aocc.org.ar i want the background of the menu item "IV Congreso" to be slightly different from the others, like another kind of orange.

    How can i do this? Thank you so much

  2. Andrew Bartel
    Member
    Posted 1 year ago #

    You should create a child theme for this. In the style.css file, at the bottom, add:

    #menu-item-317 {
    background-color: your-color;
    }

    This will not be valid if you change that part of the menu though, as it will be assigned a different id.

    Check out firebug for this kind of css work.

  3. efogtman
    Member
    Posted 1 year ago #

    I added this line:

    #menu-item-317 {
    background-color: #E28C40;
    }

    and it didn't change. Any other solution?

  4. Andrew Bartel
    Member
    Posted 1 year ago #

    Take out the .nav

Topic Closed

This topic has been closed to new replies.

About this Topic