How to change background color for one of the menu items

  • Author
    Posts
  • #70077

    Hi,

    I would like to change the background color of one of the main menu items.
    Currently all the menu items have a white background, however I want to get a different color for the very last menu item.

    Thank you for your help and for this beautiful theme!

    Aleksandra

    Website: www.tripeconomist.com

    #70433
    Zed
    Cryout Creations Team

    All menu items have unique identifiers which can be used to target them specifically with CSS. For example, for the last menu item:

    #access .menu-item-2406 > a {
        background: #111;
    }

    You’ll need to adjust the left/right padding customization to make the text appear center-aligned inside the items.


    If you like our creations, help us share by rating them on WordPress.org.
    Please read the available documentation and search the forums before posting.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to change background color for one of the menu items’ is closed to new replies.