Topic summary
A user seeks to change the text color of “Shoe size” and “Quantity” labels on their product page.
Solutions Provided:
Multiple community members offered CSS-based approaches:
-
Custom CSS via Theme Customizer: Add code targeting
.product .quantity__labeland.product .form__labelwith desired color values (e.g.,#0000ff). -
Direct CSS File Edit: Insert CSS into
base.css,style.css, ortheme.csstargeting.product-form__quantity .form__labelor more specific selectors likefieldset.js.product-form__input legend.form__label. -
Variant Label Change: One responder noted that changing the actual text (not just color) requires editing product variants in the Shopify admin.
Outcome:
The issue was resolved. The original poster confirmed the solutions worked and thanked contributors. All approaches use !important flags to override existing styles and allow custom hex color codes.
Hello,
Please share “Store URL”
Thanks!
Hi @Mohamed07
You can follow this instruction:
-
Go to Shopify > Theme > Customize
-
Copy and paste this code on Theme settings > Custom CSS section > then change the color code as requested.
.product .quantity__label,
.product .form__label {
color: #0000ff !important;
}
Liz
Hi @Mohamed07
To change the word you need to go in your products and select variant.
To change the color try this one. If it wont work please, provide your store URL. Thanks!
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.product-form__quantity .form__label {
color: red;
}
- And Save.
- Result:
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Hi @Mohamed07
- Go to Online Store → Theme → Edit code.
- Open your theme.css / based.css file and paste the code in the bottom of the file.
fieldset.js.product-form__input.product-form__input--pill legend.form__label {
color: #00D779 !important;
}
.product-form__input label.quantity__label.form__label {
color: #00D779 !important;
}
If you want a different color, you can write it in place of #00D779.
Result:
If my reply is helpful, kindly click like and mark it as an accepted solution.
If you are happy with my help, you can help me buy a COFFEE
Thanks!
Thanks a lot for your help it worked, much appreciated
Thanks a lot for your help it worked much appreciated



