Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1122583
    JRMacPherson
    Participant

    Good Afternoon,

    I have read through various posts asking the same question but none of the solutions seem to be working.

    Can you confirm how I can change the background colour and text colour on the dropdown / submenu on the following staging site, as it is currently white background with white text.

    http://test.consularassist.com/

    User name and password in case needed to follow.

    Thanks for your help!

    John

    #1122585
    JRMacPherson
    Participant
    This reply has been marked as private.
    #1122602
    Nico
    Moderator

    Hi There,

    Thanks for writing in.

    To change your submenu color text

    .x-navbar .desktop .sub-menu li > a{
    color:#fff;
    }

    To change Submenu background color:

    .x-navbar, .x-navbar .sub-menu {
        background-color: #000
    }

    Change the hex color to achieve the best color you want.

    Hope it helps.

    Thanks.

    #1123289
    JRMacPherson
    Participant

    Thank you,

    I had tried both of those previously and they aren’t working.

    I have updated the code and there’s no change.

    Many thanks

    John

    #1123352
    Friech
    Moderator

    Hi John,

    Please update the given code to this:

    header .x-navbar .sub-menu {
         background-color: #5b872d !important;
    }

    If you still need to change the white text color, add this custom css as well.

    header .x-navbar .desktop .sub-menu li > a {
    	color: #000;
    }

    Feel free to adjust those color values, and clear your browser’s cache after doing the changes.

    Hope it helps, Cheers!

    #1124350
    JRMacPherson
    Participant

    That’s great thank you.

    The text color code isn’t working still but the background is.

    Could there be a conflict somewhere?

    #1124652
    Friech
    Moderator

    Hi There,

    It did not work, because you did miss the closing bracket on the first css block I’ve give.

    /*This changes the submenu background*/
    header .x-navbar .sub-menu {
         background-color: #3B9FB5 !important;

    Please add the closing bracket.

    Thanks.

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