Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #876115
    michaellanfield
    Participant

    http://thevegansandwich.com

    I have a question. For the drop down menu, for one of the menu pages/items I would like the entire menu item (not text) colour to be different, to stand out from the rest of the drop down menu items. How to do this? Thank you.

    #876392
    Thai
    Moderator

    Hi There,

    Please add the following CSS under Customizer > Custom > Edit Global CSS:

    body .x-navbar .sub-menu {
        background-color: #f0f0f0 !important;
    }

    Hope it helps 🙂

    #876757
    michaellanfield
    Participant

    🙁 Doesn’t seem to work.

    #877499
    Christian
    Moderator

    Hey Michael,

    Can you give us a screenshot showing what menu item you would like to change the background?

    Thanks.

    #877628
    michaellanfield
    Participant
    This reply has been marked as private.
    #878163
    Zeshan
    Member

    Hi Michael,

    Please use following CSS code instead:

    .masthead-inline .x-navbar .desktop .menu-item-148 .sub-menu {
      background-color: #ff0000 !important;
    }
    

    Replace #ff0000 with your desired color (you can generate hex color codes from here).

    Thank you!

    #878479
    michaellanfield
    Participant

    Doesn’t work.

    #879249
    John Ezra
    Member

    Hi there,

    Thanks for updating the thread! You can add this under Custom > CSS in the Customizer or in your child theme’s style.css file.

    .masthead-inline .x-navbar .desktop .menu-item-148 .sub-menu {
      background-color: #ff0000 !important;
    }
    
    li#menu-item-148 a {
        color: #ff0000;
    }
    
    .menu-item-148 .sub-menu a span {
      color:#ffffff;
    }

    Just change the color values as you see fit. I have tested this via your custom CSS area in the customizer and it works.

    Hope this helps – thanks!

    #879314
    michaellanfield
    Participant

    The whole Media menu is red, including the media link. I just wanted Webinar to be red and not anything else. 🙂

    #879840
    Paul R
    Moderator

    Hi,

    You can try this code instead.

    
    body .x-navbar .menu-item-3092 a {
       color:red;
    }
    

    Hope that helps.

    #880289
    michaellanfield
    Participant

    nope

    #881224
    Darshana
    Moderator

    Hi there,

    Please try the following CSS rule.

    
    .x-nav-wrap.desktop .sub-menu .menu-item-3092 {
        background-color: #ff0000;
    }
    
    .x-nav-wrap.desktop .sub-menu .menu-item-3092 a {
        color: #fff;
    }
    

    Hope that helps.

    #881433
    michaellanfield
    Participant

    Almost exactly the way I like it, but is there a way to make it so the whole webinar row is red?

    #881803
    Lely
    Moderator

    Hi Michael,

    Please use this CSS:

    li#menu-item-148 > ul {
        padding-left: 0;
        padding-right: 0;
    }
    li#menu-item-148 > ul > li {
        padding-left: 1.75em;
        padding-right: 1.75em;
    }

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-876115 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>