Jump to content

Change hamburger color on one page but not after clicking on it

Recommended Posts

Site URL: https://www.debrarbryson.com

Hi Everyone, 

Would someone be able to help me write some code to make the hamburger lines white instead of black on the home page? I tried the below, but it didn't work.

button.header-burger-btn.burger {
  color: white !important
}

Also, please note: could you make the code apply to this page when the hamburger is in = format, not X too when you click on it? My mobile menu background is white so it will disappear if both are changed to white. 

Thank you! 

IMG_2318.thumb.jpg.ce15aec097f0d0ea32266689fd9ea26b.jpg

Link to comment
20 hours ago, senecabryson said:

Site URL: https://www.debrarbryson.com

Hi Everyone, 

Would someone be able to help me write some code to make the hamburger lines white instead of black on the home page? I tried the below, but it didn't work.

button.header-burger-btn.burger {
  color: white !important
}

Also, please note: could you make the code apply to this page when the hamburger is in = format, not X too when you click on it? My mobile menu background is white so it will disappear if both are changed to white. 

Thank you! 

IMG_2318.thumb.jpg.ce15aec097f0d0ea32266689fd9ea26b.jpg

Is it the result you want to achieve?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

You can add to Home > Design > Custom Css

.header-burger-btn.burger .burger-inner >div {
  background-color: #fff !important;
}

.header-burger-btn.burger--active .burger-inner >div {
  background-color: #000 !important;
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

@bangank36 We are getting there! I need the to be black on all of the other pages. Is there a way to make the code apply to the homepage only?

 

Thank you for your help!

IMG_4F32CF953DA1-1.jpeg

Edited by senecabryson
I thought the problem was totally fixed, but then I realized the code applied to all pages, not just the homepage as I need.
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.