How to Hide a Section on Squarespace

One of the most asked questions I get asked is How to Hide a Section in Squarespace. The solution is pretty similar to how to hide headers and footers in Squarespace!

Table of Contents Show

    Hide Sections on Squarespace 7.1 Video Tutorial

    Written Tutorial to Hide Sections on Squarespace 7.1

    find squarespace section id

    Before you add the code to hide a section, you need to download Squarespace Id Finder for Chrome.

    Once installed, go to the page with the section you want to hide and activate Squarespace ID Finder, and every id for collections (yellow), sections (blue), and blocks (red) will appear.

    Locate the section ID of the section you want to hide. 

    Add the section id to the device code

    Then, decide if you want to hide it from mobile, tablet, or desktop and update the code below with your section ID.

    Add the code to site-wide css or a single page

    Finally, add it to your site. You can add it on the page or you can add it sitewide. 

    Sitewide - Within the Squarespace Dashboard Design > custom css > add your code > save

    Single page - If you want to only add the code to a single page: Page > Settings > Advanced > Add the code <style> </style> and in between the style brackets add the code below. It will look like this:

    <style>
      /* Hide this on Mobile */
    @media screen and (max-width:767px) {
    	[data-section-id="enter-id-here"] {
    		display: none;
    	}
    }
    </style>

    Save

    Whether you add the code to a single page or site-wide, don’t forget to hit the save button!

    CSS Code to Hide a Single Squarespace Section on 7.1

    Here is the CSS code to hide different sections on different devices.

    Code to Hide On Mobile

    /* Hide this on Mobile */
    @media screen and (max-width:640px) {
    	[data-section-id="enter-id-here"] {
    		display: none;
    	}
    }

    Code to Hide on Tablet

    /* Hide this on Tablet */
    @media screen and (max-width:768px) {
    	[data-section-id="enter-id2-here"] {
    		display: none;
    	}

    Code to hide on mobile

    /* Hide this on Desktop */
    @media screen and (min-width:767px) {
    	[data-section-id="enter-id-here"] {
    		display: none;
    	}
    }

     

    Are You On Pinterest?

    If you enjoyed this post please share it, thanks!

    How to Hide a Section in Squarespace 7.1 on every device
     
    As an Amazon Affiliate, I earn from qualifying purchases. This post may contain affiliate links. This means I may be rewarded monetarily or ortherwise when you use them to make a qualifying purchase. Read my Earnings Disclaimer Here.
    Yazzi | Squarespace Web Designer

    Helping High Vibe✨Entrepreneurs get their digital product business off the ground using simple systems and tech that saves time and automates your business.
    Want to start your business without breaking the bank? 

    👇Download the Free Guide👇
    The Tools You Need to Sell Digital Products ✨

    https://highvibebiz.com
    Previous
    Previous

    How to Add or Change a Favicon (Browser Icon) on Squarespace 7.1

    Next
    Next

    How to Create a Squarespace Blog Template