Jump to content

How do I change the bg color of the mobile hamburger menu (and the colors there in general)

Go to solution Solved by Architekt909,

Recommended Posts

Posted

I have everything nearly how I want it, except for the way the hamburger menu overlay displays in the mobile view. This is at present what it looks like when you click the hamburger button for the mobile view:

 

image.thumb.jpeg.95542ada81c262c3e509b9ed9e547583.jpeg

I tried going to site styles->Colors->My Theme, selecting the theme I have assigned to my "site header" section, and looking for where I would set this color, but I can't seem to find it. I don't want this bright yellow background. Also, I'd like to be able to change the color of the buttons on this overlay. Where might I find within the theme how to change those colors? Everything else has been super easy and doable via the themes. I must just be tired and missing something obvious. Thanks for the help!

  • Solution
Posted

I figured it out. It was a tad bit confusing. The top site header was displaying that it used 1 particular theme, which I assumed applied to the hamburger overlay menu once clicked. Turns out I was wrong. It was using a different theme. I was able to find out which theme by accident: I clicked the hamburger menu in mobile view to bring up what you see above, then clicked the paint brush icon in the top-right and it informed me that it was in fact using a different theme. Once I had the correct theme, it was easy: To change the BG color it's under "Menu Overlay". From there you can see "background color", "link color", etc. Problem solved.

  • 1 year later...
Posted

Hi, can anyone help.

I have changed the colours in the menu overlay options - see screengrab. I would like my menu overlay background colour to be the acid greeny/yellow (in my template) with black text links, but the colours aren't there. I am getting a purple (which is one of my site colours) background (see screengrab). Can anyone help?

https://reindeer-dandelion-kyhx.squarespace.com/

Password: reindeer123

Thanks
Laura

 

Screenshot 2024-07-12 at 16.24.50.png

Screenshot 2024-07-12 at 16.25.07.png

Posted
On 7/12/2024 at 10:29 PM, dotandpeg said:

Hi, can anyone help.

I have changed the colours in the menu overlay options - see screengrab. I would like my menu overlay background colour to be the acid greeny/yellow (in my template) with black text links, but the colours aren't there. I am getting a purple (which is one of my site colours) background (see screengrab). Can anyone help?

https://reindeer-dandelion-kyhx.squarespace.com/

Password: reindeer123

Thanks
Laura

 

Screenshot 2024-07-12 at 16.24.50.png

Screenshot 2024-07-12 at 16.25.07.png

You can use this code to Website Tools > Custom CSS

div.header-menu-bg.theme-bg--primary {
    background-color: yellow !important;
}
div.container.header-menu-nav-item * {
    color: #000 !important;
}
body.header--menu-open div.burger-inner>div {
    background-color: #000 !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.