Jump to content

Customize product block

Recommended Posts

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)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • 8 months later...
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%;
}

Link to comment
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!)

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.