Jump to content

Making a Section in my Store Disappear after a category is selected

Recommended Posts

Given that you'll only have these 3 pages where you want to remove that section, this CSS should remove it.

#collection-5fe06096f3f88b619f3aecbb section[data-section-id="5feaa679403aca2b594ef4ef"], #collection-5fe06096f3f88b619f3aecbb section[data-section-id="5feaa679403aca2b594ef4ef"], #collection-5fe06096f3f88b619f3aecbb section[data-section-id="5feaa679403aca2b594ef4ef"] {
  display: none;

But if you add more categories, we'll have to either add more code to the above, or get fancier with our coding logic.

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.