Jump to content

Customize product block

Recommended Posts

Posted
On 10/23/2022 at 5:13 AM, kindandbrave said:

https://willinglee.co/gifting-ideas

Hi there, I'm trying to remove the "quantity" but keep the "add to cart" CTA.

I'd also love to decrease the text size on the title, and decrease the button size. Any help appreciated 🙂

Willinglee — Gifting Ideas 2022-10-22 at 5.11.50 PM.jpg

Try adding to Home > Desgin > Custom Css

.product-block .product-quantity-input {
  display: none;
}

.product-block .sqs-add-to-cart-button-inner {
  font-size: 10px;
}

.product-block .productDetails .product-title {
  font-size: 16px;
}

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

  • 8 months later...
Posted
On 10/25/2022 at 12:19 AM, Beyondspace said:

Try adding to Home > Desgin > Custom Css

.product-block .product-quantity-input {
  display: none;
}

.product-block .sqs-add-to-cart-button-inner {
  font-size: 10px;
}

.product-block .productDetails .product-title {
  font-size: 16px;
}

Support me by pressing 👍 if this useful for you

Hi there, 

Thanks for the code above. I am looking to have the button to stretch to the size of the product block. Currently it is a fixed width. I tried different ways (below) and it doesnt work. Could you please shed some light on how I can have the width of the button to match the width of the product block? Thanks in advance!

.product-block .sqs-add-to-cart-button-inner {
  width: inherit;
}

.product-block .sqs-add-to-cart-button-inner {
  width: 100%;
}

Posted
On 7/6/2023 at 1:44 PM, Dilon said:

Hi there, 

Thanks for the code above. I am looking to have the button to stretch to the size of the product block. Currently it is a fixed width. I tried different ways (below) and it doesnt work. Could you please shed some light on how I can have the width of the button to match the width of the product block? Thanks in advance!

.product-block .sqs-add-to-cart-button-inner {
  width: inherit;
}

.product-block .sqs-add-to-cart-button-inner {
  width: 100%;
}

Can you share link to page where you use product block? We can check easier

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.