Jump to content

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

Recommended Posts

  • Replies 1
  • Views 273
  • Created
  • Last Reply

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.