Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Mobile Burger Color Invert on 7.1


ccd_holly

Question

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

My burger icon is white across the board (which is what I want) but I have a header code that changes all inside page headers to black. This seems to also be changing the burger icon to black on those pages on the mobile view. I am also losing my button text color which actually changes to white? Not really sure how to fix this. It is correct on some mobile pages but not others.

First two images are correct, but when I navigate to the 'sign up' page it changes to black and you can't see it, then when I click the burger/toggle just by clicking on the black header (top right) it goes back to white over the green, but my button text is missing.

Any help is appreciated thank you!

1133995333_ScreenShot2020-07-31at12_32_28PM.thumb.png.e369cc1effa9c8dd51ecd334a479fba0.png79818580_ScreenShot2020-07-31at12_32_38PM.thumb.png.418b47e459f817a137c54ee2b934b50d.png1236334171_ScreenShot2020-07-31at12_32_49PM.thumb.png.a454e21afa30dcc64f2f5465212f5c39.png1185022652_ScreenShot2020-07-31at12_32_58PM.thumb.png.cd21afa3a2d2d39bc37663188dfc5d30.png

Link to post
  • Answers 8
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Posts

Aha! I found it. Got it all figured out and it all works now. Thanks for your help!!!

Posted Images

8 answers to this question

Recommended Posts

  • 0

Whats the password?

Free Squarespace 7.1 Anchor Link and Accordion Plugins available here!

If I replied to one of your questions with code, it was either CSS or jQuery.

To add CSS, go to Design -> Custom CSS

jQuery needs some additional steps. Head here: https://code.jquery.com/ and click on minified, under jQuery 3.x and copy that code into Squarespace.

After you put that code into the code injection section in Squarespace, you can add the code I supplied. The code from me will need <script> added before it and </script> added after it (only for jQuery).

There are two places that you can add the code, one is site wide (adds to all pages). Settings -> Advanced -> Code Injection

The other is for a specific page (adds to one page only). Pages -> Gear Icon next to the page -> Advanced

Link to post
  • 0
body:not(.homepage) .burger-box >.header-menu-icon-doubleLineHamburger > * {
    background: white !important;
}

That will make the button white on everything except the homepage.

As far as the button.

The #header a { color: #fff !important; } code that you added is making all of the links in the header white

You will need to remove that, and use code that just targets the nav links.

This should work, and not mess with the button after you remove the other code.

.container.header-menu-nav-item.header-menu-nav-item a {
    color: white !important;
}

 

Free Squarespace 7.1 Anchor Link and Accordion Plugins available here!

If I replied to one of your questions with code, it was either CSS or jQuery.

To add CSS, go to Design -> Custom CSS

jQuery needs some additional steps. Head here: https://code.jquery.com/ and click on minified, under jQuery 3.x and copy that code into Squarespace.

After you put that code into the code injection section in Squarespace, you can add the code I supplied. The code from me will need <script> added before it and </script> added after it (only for jQuery).

There are two places that you can add the code, one is site wide (adds to all pages). Settings -> Advanced -> Code Injection

The other is for a specific page (adds to one page only). Pages -> Gear Icon next to the page -> Advanced

Link to post
  • 0

Thank you! The hamburger is working.

If I remove that header code, then all of my headers are no longer black? Is there a way to just tell that 1 button on the menu not to change?

Link to post
  • 0

You must have removed the wrong code.

Are you entering that CSS in the page code injection. You don't need to.

You can just do this in design -> css to set the background to black (all pages except home page) and link text (not the button) to white.

If you have OTHER stuff in the page code injection, do not delete it all.

Just the lines for the bg and font color.

body:not(.homepage) #header {
	background-color: black !important;
}

.container.header-menu-nav-item.header-menu-nav-item a {
    color: white !important;
}

 

Edited by rwp

Free Squarespace 7.1 Anchor Link and Accordion Plugins available here!

If I replied to one of your questions with code, it was either CSS or jQuery.

To add CSS, go to Design -> Custom CSS

jQuery needs some additional steps. Head here: https://code.jquery.com/ and click on minified, under jQuery 3.x and copy that code into Squarespace.

After you put that code into the code injection section in Squarespace, you can add the code I supplied. The code from me will need <script> added before it and </script> added after it (only for jQuery).

There are two places that you can add the code, one is site wide (adds to all pages). Settings -> Advanced -> Code Injection

The other is for a specific page (adds to one page only). Pages -> Gear Icon next to the page -> Advanced

Link to post
  • 0

Awesome!!!

Free Squarespace 7.1 Anchor Link and Accordion Plugins available here!

If I replied to one of your questions with code, it was either CSS or jQuery.

To add CSS, go to Design -> Custom CSS

jQuery needs some additional steps. Head here: https://code.jquery.com/ and click on minified, under jQuery 3.x and copy that code into Squarespace.

After you put that code into the code injection section in Squarespace, you can add the code I supplied. The code from me will need <script> added before it and </script> added after it (only for jQuery).

There are two places that you can add the code, one is site wide (adds to all pages). Settings -> Advanced -> Code Injection

The other is for a specific page (adds to one page only). Pages -> Gear Icon next to the page -> Advanced

Link to post

Create an account or sign in to comment

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


×
×
  • Create New...