Jump to content

Hide header, footer and banner on single page Squarespace 7.0

Recommended Posts

Site URL: http://pilgrimsoul.com

Looking for code injection to hide the header, footer and banner from a single page using Squarespace 7.0. I found code that works in removing the header and footer, but the banner remains.

This is what I'm currently using to remove the header and footer: <style>.Header, .Footer, .Mobile-bar{display:none !important; }</style>

Anyone know how to remove the banner too from a single page? The page I'm working on isn't yet enabled, but you can see the attached screenshot and the homepage URL if that helps. 

Screen Shot 2020-10-15 at 6.18.51 PM.png

Link to comment
  • 4 months later...

@jonkam01

If you are on the business plan or above you could put it on a single page by wrapping the code in a style tag. Then add the following to Page Settings > Advanced > Page Header Code Injection for the page.

<style>

  .sqs-announcement-bar {
  
    display : none;
    
    }
    
  <style>

Alternately it could be added to Design > Custom CSS. Something like the following but you would need to identify the page collection id for your page.

#collection-5f45b7ef6228fc1bee359e60 .sqs-announcement-bar {

  display: none;
  
  }

@paul2009 has an article covering elements of this topic. See How to apply CSS to one Squarespace page.

Let us know how it goes.

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 5 months later...

Hi there, @creedon !

I just tried your code to hopefully help turn off the footer on my homepage via Design > Custom CSS. But, I think I must have something wrong because it is not working for me. Would you mind checking my work? 

#collection-60f6fab72a6ff25e75eac22d .sqs-footer { 

display: none; 

}

The collection # is for my homepage.

Thank you!
-Makenna

Link to comment

@makennaokeeffe

Please post the URL for your site.

If your site is not public please set up a site-wide password, if you've not already done so.

Post the password here.

Adding a site-wide password is not a security breach. Please read the documentation at the link provided to understand how it works.

We can then take a look at your issue.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 6 months later...
On 2/25/2022 at 9:12 AM, MoonMama said:

Yes please.

Add the following to Design > Custom CSS.

#footer {

  display : none;
  
  }

This is for v7.0 using the Skye template family.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 2 months later...
On 2/26/2022 at 2:26 PM, creedon said:

Add the following to Design > Custom CSS.

#footer {

  display : none;
  
  }

This is for v7.0 using the Skye template family.

Let us know how it goes.

@creedonTrying to hide banner and title in one page, but it is not working 7.0.  I used the following code, any idea? Template Alex & Sonny. This page: https://www.industracom.com/careers

 

<style>
#banner-area-wrapper {display: none}
</style>
Edited by HunterD
Link to comment
8 hours ago, HunterD said:

Trying to hide banner

Hiding seems problematic as there are some spacing issues. When the banner is hidden. Can you simply remove the banner for that page? SS handles the spacing issue when that is done.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.