Jump to content

Removing menu header and footer and buttons and lines disappeared!

Go to solution Solved by Ziggy,

Recommended Posts

I got some code from a web developer to take away the menu header and footer for an Instagram link page and it worked great except for the fact that it made my buttons turn to text only and I can't add lines. Would love and appreciate any help! https://homeownerhq.co/instagram

Here is the code:

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MTLGTBFXQR"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-MTLGTBFXQR');
</script>

<!-- Remove the Header (7.0) -->

<style> 
  .Header { 
    display: none;
  } 
</style>


<!-- Remove the Footer (7.0) -->

<style> 
  .Footer { 
    display: none;
  } 
</style>

<!-- Remove the Header and Footer (7.0) -->

<style> 
  .Header, .Footer { 
    display: none;
  }
  
  
<!-- Remove the Header (7.1) -->

<style> 
  #header { 
    display: none;
  } 
</style>


<!-- Remove the Footer (7.1) -->

<style> 
  #footer-sections { 
    display: none;
  } 
</style>

<!-- Remove the Header and Footer (7.1) -->

<style> 
  #header, #footer-sections { 
    display: none;
  }

Link to comment
  • Replies 2
  • Views 134
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution

You've got some code errors (repeats and missing the closing <.style>), and given you are on Squarespace 7.1 you don't need the code for 7.0, replace it with this:

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MTLGTBFXQR"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-MTLGTBFXQR');
</script>

<!-- Remove the Header and Footer (7.1) -->
<style> 
  #header, #footer-sections { 
    display: none;
  }
</style>

Let me know if that helps! Give me a thumbs up if it does. Thanks!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

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.