Jump to content

Scroll-back header menu customization

Go to solution Solved by tuanphan,

Recommended Posts

Posted

Site URL: https://bobcat-deer-6yf9.squarespace.com/

Hi,

I'm trying to custmoise the background colour of my header when it's 'scrolling back'. The background is transparent in the default state, but when I'm scrolling to the top of the page, the 'scroll-back' effect gives the header a black background. Ideally I'd like it to be white. Anyone know how I can fix this?

Any help would be appreciated. 

https://bobcat-deer-6yf9.squarespace.com/

Thanks!

image.thumb.png.8b168536f1030a599d4207e285640c74.png

 

  • Replies 4
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution
Posted

Add to Design > Custom CSS

header#header.shrink {
    background-color: white !important;
}
header#header.shrink a#site-title {
    color: black !important;
}
header#header.shrink svg {
    fill: black;
}
header#header.shrink div.header-nav-item a {
    color: black;
}

 

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!)

  • 1 year later...
Posted
On 5/20/2024 at 7:25 AM, jordan2gpaint said:

Hello,

This worked perfectly on my website as well.. but is it possible for someone to add the code for:

- a button

- my social links no longer have the round outline border

- dropdown menu to have a background

- and said dropdown menu to have curved corners

 

url https://horse-mayflower-pt46.squarespace.com/config/pages

 

Many thanks in advance

What is password?

image.png.d7dfec4d12c62e9da32d6a90507878eb.png

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.