Jump to content

How to style the variation & quantity buttons on product block

Recommended Posts

  • Replies 13
  • Views 3.3k
  • Created
  • Last Reply
58 minutes ago, emmageorge said:

Really appreciate that - although cannot figure out how to change the border radius and padding on the Option button - it works on the quantity button...

https://sarahfarooqi.squarespace.com/calendars

Would be much easier if the product block used up the same styling as on the product item page! 

#collection-5dc2d77721110f74288839b9 select[data-variant-option-name="Option"] {
    background-color: #d4ddde;
    font-size: 20px;
    border-radius: 10px;
    padding: 10px;
}

border radius & padding should work

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
1 hour ago, emmageorge said:

I really want to give up as life's too short to faff about with this - but it doesn't work and I don't know why, I tried adding !important. Maybe let it drop - thanks for your time Tuan

Try inserting the code & share url, i'll check.

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

what a man! https://sarahfarooqi.squarespace.com/calendars 

Here's what I've got - I tried !important after the radius & padding of Option. 

#collection-5dc2d77721110f74288839b9 {

  select[data-variant-option-name="Option"] {
    background-color: #d4ddde;
    font-size: 20px;
    border-radius: 10px;
    padding: 10px;}
    
    .product-quantity-input input[type="number"] {
      background-color: #D4DDDE; 
      font-size: 20px;
      border-radius: 20px;
      padding: 10px; }
}

 

Link to comment
5 minutes ago, emmageorge said:

what a man! https://sarahfarooqi.squarespace.com/calendars 

Here's what I've got - I tried !important after the radius & padding of Option. 


#collection-5dc2d77721110f74288839b9 {

  select[data-variant-option-name="Option"] {
    background-color: #d4ddde;
    font-size: 20px;
    border-radius: 10px;
    padding: 10px;}
    
    .product-quantity-input input[type="number"] {
      background-color: #D4DDDE; 
      font-size: 20px;
      border-radius: 20px;
      padding: 10px; }
}

 

It worked here https://prnt.sc/pwwpkw

Have you tried clearing cache yet?

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
  • 1 year later...

hi! was this ever resolved? i'm having the same issue. i have two buttons that i need to modify the look of. the two buttons are called "length" and "reusable cooler bag."  i used the following code to transform the "length" button, which worked successfully:

#item-60219600caaff826bd81857b select[data-variant-option-name="length"] {
    background-color: #fffcf1;
    font-size: 20px;
    border-radius: 30px;
      border-color:#844427;
    padding: 10px;
}

however, when I copy and paste this code, replacing "length" with "reusable-cooler-bag," it doesn't work. 

my site url is https://maroon-burgundy-9dzz.squarespace.com/config/pages/60219600caaff826bd818567. click on any of the product buttons and you'll see what i'm talking about.

thank you so much!

Link to comment
On 3/4/2021 at 3:23 AM, rooted said:

hi! was this ever resolved? i'm having the same issue. i have two buttons that i need to modify the look of. the two buttons are called "length" and "reusable cooler bag."  i used the following code to transform the "length" button, which worked successfully:

#item-60219600caaff826bd81857b select[data-variant-option-name="length"] {
    background-color: #fffcf1;
    font-size: 20px;
    border-radius: 30px;
      border-color:#844427;
    padding: 10px;
}

however, when I copy and paste this code, replacing "length" with "reusable-cooler-bag," it doesn't work. 

my site url is https://maroon-burgundy-9dzz.squarespace.com/config/pages/60219600caaff826bd818567. click on any of the product buttons and you'll see what i'm talking about.

thank you so much!

Hi. /config is admin url. See how to find page url.

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
  • 2 weeks later...

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.