Jump to content

Change solid header background to transparent on scroll

Recommended Posts

On 10/5/2022 at 3:03 PM, Sophie_T said:

Site URL: https://alpaca-ellipse-7m5r.squarespace.com/

Hello. I have a white solid background for my header but I would like it to be fully transparent once you start scrolling? Any help appreciated.

Password: brian

You can try the following code

#header.shrink .header-border, #header.shrink .header-background-solid{
  background: transparent;
}

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
  • 2 weeks later...
On 10/6/2022 at 3:55 PM, bangank36 said:

You can try the following code

#header.shrink .header-border, #header.shrink .header-background-solid{
  background: transparent;
}

Support me by pressing 👍 if this useful for you

Hi. I pasted this into the HEADER section of the CoDE INJECTION part if ADVANCED SETTINGS. I refreshed my site but it didn't;t work and I have that code visible - see pic.

Screenshot 2022-10-15 at 12.33.42.png

Edited by Ratch
Link to comment
15 hours ago, Ratch said:

Hi. I pasted this into the HEADER section of the CoDE INJECTION part if ADVANCED SETTINGS. I refreshed my site but it didn't;t work and I have that code visible - see pic.

Screenshot 2022-10-15 at 12.33.42.png

Can you share your site?

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
  • 2 weeks later...
On 10/24/2022 at 10:21 PM, Ratch said:

I cannot share site access it's a business site with lots of private stuff on there. I can share screengrabs of specific things?

You can duplicate the site, remove all elements, except header, then share its url

Or you can setup new trial template with same header layout + Share url.

We can help easier

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
3 hours ago, tuanphan said:

You can duplicate the site, remove all elements, except header, then share its url

Or you can setup new trial template with same header layout + Share url.

We can help easier

This is what I have done - did I paste it incorrectly?

 

 

Screenshot 2022-10-27 at 17.24.43.png

Link to comment
On 10/27/2022 at 11:25 PM, Ratch said:

This is what I have done - did I paste it incorrectly?

 

 

Screenshot 2022-10-27 at 17.24.43.png

No.

Design > Custom CSS

squarespace-add-css1-min.png

squarespace-add-css2-min.png

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
On 11/3/2022 at 5:17 AM, Ratch said:

I pasted it here and still nothing. Sorry I know nothing about coding.

Screenshot 2022-11-02 at 22.16.51.png

What is site url? Maybe some class name are incorrect

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
On 11/8/2022 at 8:26 PM, Ratch said:

www.homeground.london

Use this new code

header#header.shrink {
    background-color: transparent !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

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.