Shopify themes, liquid, logos, and UX
I try to change the text color of the variant pills for the theme Dawn .
It is bare visible.
I achieved to do it for other elements but I am not able to find where I can change this... I need to change the enable and disable state.
The link to the page ist here:
https://shop.diastierwelt.de/products/jugendelexier
Is somebody know that?
Thanks!
Solved! Go to the solution
This is an accepted solution.
Hello @Jean-Philippe42
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.product-form__input input[type=radio].disabled:checked+label{
color: #5767dd !important;
}
.product-form__input input[type=radio].disabled+label {
color: #5767dd !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > base.css and paste this at the bottom of the file:
.product-form__input input[type=radio].disabled:checked+label, .product-form__input input[type=radio]:disabled:checked+label {
background: #000;
color: #fff;
}
.product-form__input input[type=radio]:disabled+label, .product-form__input input[type=radio].disabled+label {
background: #000;
color: #fff;
}
.product-form__input input[type=radio]:checked+label {
background: #000;
color: #fff;
}
.product-form__input input[type=radio]+label {
background: #000;
color: #fff;
}
Check this one.
.product-form__input input[type=radio].disabled:checked+label, .product-form__input input[type=radio]:disabled:checked+label {
color: black;
}
.product-form__input input[type=radio]:disabled+label, .product-form__input input[type=radio].disabled+label {
color: white;
}
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hello @Jean-Philippe42
Go to online store ---------> themes --------------> actions ------> edit code------->assets ---> section-main-product.css
ad this code at the end of the file.
.product-form__input input[type=radio].disabled:checked+label, .product-form__input input[type=radio]:disabled:checked+label {
color: red !important;
}
.product-form__input input[type=radio]:disabled+label, .product-form__input input[type=radio].disabled+label {
color: red !important;
}
and the result will be
If this was helpful, hit the like button and mark the job as completed.
Thanks
This is an accepted solution.
Hello @Jean-Philippe42
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.product-form__input input[type=radio].disabled:checked+label{
color: #5767dd !important;
}
.product-form__input input[type=radio].disabled+label {
color: #5767dd !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Thanks! It work well now!
- Here is the solution for you @Jean-Philippe42
- Please follow these steps:
- Then find the base.css or theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.
.product-form__input input[type=radio].disabled+label {
color: white !important;
}
.product-form__input input[type=radio].disabled:checked+label {
color: black !important;
}
- Here is the result you will achieve:
- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025