Home Forums Basel support forum Background color in mobile menu

Background color in mobile menu

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #46971

    grantjoys
    Participant

    Hi, how I can change the background color in the mobile menu?

    Attachments:
    You must be logged in to view attached files.
    #46980

    Bogdan Donovan
    Keymaster

    Hello,

    Try to add the following code snippet to the Custom CSS area in Theme Settings.

    body .mobile-nav {
    	background-color: #C0C0C0;
    }
    
    .mobile-nav form.searchform input[type=text] {
    	border-color: #D5C59E;
    }
    
    .mobile-nav .sub-menu-dropdown ul li a,
    .mobile-nav .sub-menu-dropdown ul li a:focus {
    	color: #C4A363;
    }

    Regards

    #47033

    grantjoys
    Participant

    Hi I try it but don’t change the dark color.

    I attached again the image with a markup of the color I would like to change.

    Attachments:
    You must be logged in to view attached files.
    #47072

    Bogdan Donovan
    Keymaster

    Hi,

    Try to use this selector to control the color of your mobile sub-menus background

    /* bg color of sub-menu */
    
    body .mobile-nav .sub-menu-dropdown ul {
      background-color: gray;
    }
    
    body .mobile-nav .sub-menu-dropdown ul:before {
    	color: gray;
    }
    
    /* color of sub-sub-menu */
    
    body .mobile-nav .sub-menu-dropdown li ul {
    	background-color: black;
    }
    
    body .mobile-nav .sub-menu-dropdown li ul:before {
    	color: black;
    }

    Regards

    #47263

    grantjoys
    Participant

    Okey perfect, thanks.

    #47265

    Artem Temos
    Keymaster

    You are welcome 🙂

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Background color in mobile menu’ is closed to new replies.