Jump to content

Adjust height and padding of Add to Bag, Quantity, Variant and Newsletter throughout my page

Recommended Posts

Hello there,

I am trying to unify the size of the buttons and fields of the following throughout my sire both on desktop and mobile. Currently it is close but there a some subtle differences.

Is there some code that allows me to adjust height and length and padding of the:
- Quantity
- Variant 1 (size)
- Variant 2 (color)
- Add to Bag button

Additionally I'll like to change the wording on the Variants, currently: "Select Size" "Select color"
Here  is a link to a product page where all these fields and buttons are shown: https://www.lacalifornie.es/all/p/handmade-rattan-fish

Link to comment
  • Replies 5
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Add this code to Website > Website Tools (under Not Linked) > Custom CSS

.ProductItem-details .product-quantity-input input {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.product-details .variant-select-wrapper[data-text] {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

div.sqs-add-to-cart-button {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

 

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

Thank you @tuanphan!

This works well but the quantity filed in the homepage https://www.lacalifornie.es does not pick up this code, any idea why?

Also, would you be able to help me with this as well?I'll like to change the wording on the Variants, currently: "Select Size" "Select color" Here  is a link to a product page where all these fields and buttons are shown: https://www.lacalifornie.es/all/p/handmade-rattan-fish

Link to comment
On 1/29/2024 at 4:16 PM, LucyBold said:

Thank you @tuanphan!

This works well but the quantity filed in the homepage https://www.lacalifornie.es does not pick up this code, any idea why?

Also, would you be able to help me with this as well?I'll like to change the wording on the Variants, currently: "Select Size" "Select color" Here  is a link to a product page where all these fields and buttons are shown: https://www.lacalifornie.es/all/p/handmade-rattan-fish

#1. Use this code

input[aria-label="Quantity"] {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

#2. Change these?

image.thumb.png.e51d2a786856dfa846027e44ba7283af.png

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.