Jump to content

Quantity Arrow Editing on Product Page

Recommended Posts

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

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.