Jump to content

How to target all product pages

Recommended Posts

I want to set all of my product pages (and only product pages) to have specific padding. Currently I am using each product page's ID to do this, but it's not ideal. Is there a way to target all the product pages? Below is my current code for a single page.

#item-5e07ba22afc7590ba06d1de8 section.Main-content {
padding: 80px 0px 0px 0px !important;
}

Link to comment
  • Replies 2
  • Created
  • Last Reply

If you use SS 7.0, try 

.collection-type-products.view-list

.collection-type-products.view-item

If you use SS 7.1, can you share link to your shop page?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.