Jump to content

Announcement bar immobile when header sticky on scroll?

Recommended Posts


Hello!

I want my announcement bar NOT to be sticky with the header when scrolling (on all pages). I'd like it to stay in place, even though the header is fixed on scroll, on mobile.

Also... it would be amazing to make the header (and announcement bar) not sticky anywhere on the desktop version!!!

How can I do this? Any help is appreciated! Thank you! website: www.thefolkpath.com password: go

Link to comment

To remove announcement bar when scrolling, add this to Website > Website Tools > Custom CSS

header#header.shrink .sqs-announcement-bar-dropzone {
    display: none !important;
}

This should work on both desktop + mobile

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

Link to comment
  • 2 months later...
On 12/6/2023 at 12:14 AM, daniellenoakes said:

the transition on that is really janky, is there a way to smooth it?

Try this code

header#header.shrink .sqs-announcement-bar-dropzone {
    display: none !important;
	transition: all 0.3s;
}
header#header {
	transition: all 0.3s;
}

 

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

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.