Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1077042
    Moonworks
    Participant

    Could you tell me the css to change the background colour of the submenus please?

    I found this code in a previous post, and this removes the dividers in the menu, which was another question I can now not ask.

    I can’t figure out getting the background to use the same info as the main menu though.

    .desktop .sub-menu li:after,   .desktop .sub-menu li:before {
    display: none !important;
    border: 0px;
    }

    Thanks.

    #1077418
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    You can add this under Custom > CSS in the Customizer:

    ul.sub-menu {
        background-color: #ddd !important;
    }

    Thanks.

    #1077996
    Moonworks
    Participant

    Thank you for the CSS. Unfortunately, it does not change the color.

    #1078317
    Prasant Rai
    Moderator

    Hello There,

    The above code is working fine on my end. Can you please clear your browser cache and try again, if it does not work then please share URL of your website.

    Thanks.

    #1078343
    Moonworks
    Participant

    I tried that, but still no luck yet.

    My URL is http://www.authorpa.com

    Thanks

    #1078425
    Joao
    Moderator

    Hi There,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks

    Joao

    #1079608
    Moonworks
    Participant

    It’s ok, I found the correct css on http://www.xthemeusers.com

    .x-navbar ul.sub-menu{
    background: XXXXXX !important;
    }

    It was close 🙂

    #1079948
    Christopher
    Moderator

    Please let us know if you need further assist.

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