Change border/outline color of quantity selector, Dawn 10.0 theme

Change border/outline color of quantity selector, Dawn 10.0 theme

TothDigital
Shopify Partner
22 1 7

I have tried everything I can think of to change the color of the quantity input border in Dawn 10.0, nothing is working. Yes, I have read all of the related discussion topics on this forum...

 

Has anyone been able to successfully change the quantity input border color? 

 

Thanks! 

Replies 6 (6)

PageFly-Noah
Shopify Partner
1317 233 281

Hi @TothDigital 

 

This is Noah from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
.quantity:after {
box-shadow: unset !important;
border-color: red !important;
}

</style>

Here's how its look on my end : 

PageFlyNoah_1-1691634025044.png

 

 

Hope this can help you solve the issue 

 

Best regards,

Noah | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

TothDigital
Shopify Partner
22 1 7

Ahhh I never thought to unset box-shadow. That worked! Thanksss

theparmesan_don
Excursionist
20 1 7

Is there a way to also change the color of the + - buttons please? 

nelsonestrada5
Shopify Partner
8 0 2

Yes! If you want to change everything about the quantity selector, this would be the code to include in your main-product.liquid's `{%- style -%}` section:

 

  .quantity__label,
  .quantity__input,
  .quantity__button {
    color: {{ product.metafields.custom.text_color.value }};
  }
  .quantity:after {
    border-color: {{ product.metafields.custom.text_color.value }} !important;
    box-shadow: none !important;
  }

 

I tried making it even more flexible and creating some product level metafields (of type color) that let me select the colors for each of the products directly from the admin product page, not the theme code.

 

  .product__title,
  .product__text,
  .price--large,
  .product__tax,
  .product__tax a {
    color: {{ product.metafields.custom.text_color.value }} !important;
  }
  .quantity__label,
  .quantity__input,
  .quantity__button {
    color: {{ product.metafields.custom.text_color.value }};
  }
  .quantity:after {
    border-color: {{ product.metafields.custom.text_color.value }} !important;
    box-shadow: none !important;
  }
  .form__label {
    color: {{ product.metafields.custom.text_color.value }} !important;
  }

 

Vicente76
Visitor
2 0 0

Hello, this doesn't changes my + and - icons and neither the number text color, do you know how to fix it?, I want them white

 

Vicente76_0-1745448002176.png

 

nelsonestrada5
Shopify Partner
8 0 2

This should work, just add it to your main-product.liquid's `{%- style -%}` section:

.product__title,
.product__text,
.price--large,
.product__tax,
.product__tax a {
color: {{ product.metafields.custom.text_color.value }} !important;
}
.quantity__label,
.quantity__input,
.quantity__button {
color:#ffffff;
}
.quantity:after {
border-color:#ffffff !important;
box-shadow: none !important;
}
.form__label {
color: #ffffff !important;
}