Dropdown menu item custom color

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #24147
    Ixinho
    Participant

    Hello, is it possible to set custom color for specific 2nd level dropdown menu item?

    #24168
    Veena
    Moderator

    You can use the below custom CSS –

    .dropdown-menu-wrap ul.sub-menu li > ul.sub-menu li a {
        color: red;
        background: #000;
    }
    .dropdown-menu-wrap ul.sub-menu li {
        border-bottom: 1px solid #F5F0F0;
    }
    
    #24173
    Ixinho
    Participant

    Hm, this will be applied to all 2nd level dropdown menu items, i need to have different color for only the first menu item (2nd dropdown), and others should keep the default color. Is it doable?

    #24188
    Veena
    Moderator

    ok then you need to target particular menu id like this –

    .dropdown-menu-wrap ul.sub-menu li.menu-item-13238 a {
        color: #000;
    }
    

    you need to replace 13238 with your menu item’s id .

    #24202
    Ixinho
    Participant

    For the second level item i cannot find ID anywhere ..

    #24217
    Veena
    Moderator

    Pls share a link to your site.

    You can use chrome developer tools ,Pls go through this link and check section “Inspecting DOM elements and styles” – https://developer.chrome.com/devtools

    https://developers.google.com/web/tools/chrome-devtools/iterate/inspect-styles/?utm_source=dcc&utm_medium=redirect&utm_campaign=2016q3

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Invent Theme Support’ is closed to new topics and replies.