Jump to content

Disable Announcement Bar on a page with no header

Recommended Posts

I'm trying to disable the announcement bar for a page where the header is also disabled. I added this code to the Advanced Settings --> Page Header Code Injection:

<style> 
 /* remove announcement bar */ 
 .sqs-announcement-bar-custom-location {
 display: none !important;
 }
 </style>

However, the announcement bar is still showing, I suspect because the header has been disabled for the page as well. 

Is there a different code snippet I can use to disable the announcement bar on this page?

Thank you!

 

Link to comment
  • Replies 1
  • Views 254
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

@SheBossLife Hi! You can use this code to hide the announcement bar on a specific page. Add the code under Website > Pages > Website Tools > Custom CSS.

#collection-665a4f800f428445eb0a0317 .sqs-announcement-bar-dropzone {
    display: none !important;
}

You've to replace the collection-ID in the code with the collection-ID of your page. Each page has its own unique collection-ID.

You can use this Chrome extension to find your page's collection-ID.

Squarespace ID Finder

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.