Jump to content

Why is my header still showing even though I added css code to remove it?

Recommended Posts

I added each of the following css codes to try to get rid of the header, in order to make the homepage a landing page. However, every time I go to the url site without using the Squarespace builder to preview the website, the header is present each time. How can I effectively remove the header from my website? 

Please note that in the Squarespace builder preview the header is omitted but when i search the actual url, the header is still present. I don't understand why that's occurring. Thank you so much in advance for the help. 

 

CSS code I used:

tweak fixed header {display:none}

div header-announcement-bar-wrapper {display: none}

header{display: none}

siteurl: https://www.luzcgarcia.com/

Edited by lcg203
Link to comment

Please post the URL for a page on your site where we can see your issue.

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 does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the documentation at the link provided to understand how it works.

Please read the documentation at the link provided on how to share a link to your site to understand how it works. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/.

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

Your CSS is invalid.

Use the following.

.homepage #header,
.homepage #footer-sections,

  {
  
    display : none;
    
    }

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
  • 3 weeks later...
On 10/21/2022 at 11:28 AM, creedon said:

Your CSS is invalid.

Use the following.

.homepage #header,
.homepage #footer-sections,

  {
  
    display : none;
    
    }

Let us know how it goes.

HI Creedon, I am trying to remove my footer on just my homepage (alwaysajt.com) - this has worked, thank you. HOWEVER  when looking on mobile (on my actual device and not just in mobile mode when editing) there;s a big gap at the bottom where the footer used to be. Please help! Thanks

Link to comment
On 11/10/2022 at 5:51 PM, minnieosc123 said:

HI Creedon, I am trying to remove my footer on just my homepage (alwaysajt.com) - this has worked, thank you. HOWEVER  when looking on mobile (on my actual device and not just in mobile mode when editing) there;s a big gap at the bottom where the footer used to be. Please help! Thanks

Try this code

 

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.