Jump to content

Changing the Color of the Burger Icon for the Mobile View of my Squarespace website

Recommended Posts

  • Replies 9
  • Created
  • Last Reply

Top Posters In This Topic

Add this to Design > Custom CSS

body:not(.header--menu-open) #header:is(.bright, .dark, .dark-bold, .black, .black-bold) .burger {
    background-color: var(--tertiaryButtonBackgroundColor) !important;
}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Code can target the following cases

  • Burger menu is open or closed
  • One page, some specific pages, all pages

It cannot recognize when the logo is blue to do this.

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Just add this code to that page Header

<style>
  body:not(.header--menu-open) #header:is(.bright, .dark, .dark-bold, .black, .black-bold) .burger {
    background-color: var(--tertiaryButtonBackgroundColor) !important;
}
</style>

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
18 hours ago, Richard06 said:

Hey, so the code only works when I inject it on the header of the home page. Could you edit the code to make it so I can add it to any page to change the burger icon to blue?

Use this. If it doesn't work, please share link to a page + keep code in page header, we can check easier

<style>
  body:not(.header--menu-open) #header .header-burger .burger {
    background-color: var(--tertiaryButtonBackgroundColor) !important;
}
</style>

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

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.