Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #755357

    thelistener
    Participant

    Hola!
    I need help on two fronts on the site I’m working on

    1) How can I change the background colors of the mobile menu, hamburger button from black to something else?
    2) How can I make it so that the mobile menu appears on screen under 1024×768?

    THANKS in advance!!!!!

    #755949

    Lely
    Moderator

    Hello There,

    Thanks for posting in and giving us your site URL.

    1.) Please add the following CSS via Appearance > Customize > Custom > CSS:

    a.x-btn-navbar.collapsed,
    .x-btn-navbar:hover{
        background-color: red; /* Change to your preferred  background color for hamburger button*/
    }
    .x-navbar .mobile .x-nav {
        background-color: red; /* Change to your preferred  background color for mobile menu*/
    }
    

    2.) Please use the following CSS:

    @media (max-width: 1024px){
    .x-nav-wrap.desktop {
        display: none;
    }
    .x-nav-wrap.mobile {
        display: block;
    }
    .x-nav-wrap.mobile.collapse {
        display: none;
    }
    .x-nav-wrap.mobile.collapse.in {
        display: block;
    }
    body.x-navbar-fixed-left-active{
        padding: 0;
    }
    .masthead-inline .x-btn-navbar {
        display: block;
        float: right;
    }
    
    }

    Hope this helps.

    #756903

    thelistener
    Participant

    AWESOME!!!! But the background is still black in the mobile menu.

    #757361

    Darshana
    Moderator

    Hi there,

    To change the black background color, you can add this under Custom > CSS in the Customizer.

    
    @media (max-width: 979px) {
      .x-navbar {
        background-color: red;
      }
    }
    

    Hope that helps.

    #757652

    thelistener
    Participant

    Dang right it does, THANKS!!!!!!!!!!!!

    #758168

    Prasant Rai
    Moderator

    You’re welcome! We are just glad we were able to help you out.