Jump to content

Quantity Arrow Editing on Product Page

Recommended Posts

Posted

Site URL: https://atlasclayshop.squarespace.com/

I am trying to adjust the color and shape of the quantity arrows on the product page screen to better match the site theme. I have been researching the inspect page and researching for hours. So far I've determined (I think) that this is a pseudo-element, which explains why it doesn't show up on inspection. I have attempted a few pieces of code that I will list below. I am not sure if this is possible for what I want, and I know enough about CSS to adjust them to my need once I can access the element. 

 

//First code tried, used in CSS, Header, and Footer separately

<style>

input[type=number]::-webkit-inner-spin-button {

background-color: #B39E70;

}

</style>

//Second code tried, used in CSS

.ProductItem-details .product-quantity-input input[type=number]::-webkit-inner-spin-button {   
  background-color: #B39E70 !important;
  }

//Third code tried, used in CSS

.ProductItem-details .product-quantity-input input {
  -webkit-inner-spin-button-background-color: #B39E70 !important;
  }

//Fourth code tried, used in CSS

.ProductItem-details .product-quantity-input input {
  display: -webkit-inner-spin-button;   
  -webkit-inner-spin-button-background-color: #B39E70 !important;
  }

plzhelp.png

  • Replies 2
  • Views 627
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted
On 8/25/2022 at 2:06 AM, Grisdorn said:

Site URL: https://atlasclayshop.squarespace.com/

I am trying to adjust the color and shape of the quantity arrows on the product page screen to better match the site theme. I have been researching the inspect page and researching for hours. So far I've determined (I think) that this is a pseudo-element, which explains why it doesn't show up on inspection. I have attempted a few pieces of code that I will list below. I am not sure if this is possible for what I want, and I know enough about CSS to adjust them to my need once I can access the element. 

 

//First code tried, used in CSS, Header, and Footer separately

<style>

input[type=number]::-webkit-inner-spin-button {

background-color: #B39E70;

}

</style>

//Second code tried, used in CSS

.ProductItem-details .product-quantity-input input[type=number]::-webkit-inner-spin-button {   
  background-color: #B39E70 !important;
  }

//Third code tried, used in CSS

.ProductItem-details .product-quantity-input input {
  -webkit-inner-spin-button-background-color: #B39E70 !important;
  }

//Fourth code tried, used in CSS

.ProductItem-details .product-quantity-input input {
  display: -webkit-inner-spin-button;   
  -webkit-inner-spin-button-background-color: #B39E70 !important;
  }

plzhelp.png

What is your site-wide password?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

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.