How would I change the background color of these variant pills?
Topic summary
Issue: A user wants to change the background color of variant selection pills on their product page.
Solution Provided:
The resolution involves adding custom CSS code to the theme files:
- Navigate to Online Store → Edit Code
- Locate the
theme.liquidfile - Insert CSS styling code above the
</body>tag
Status: The discussion appears resolved after the store password was removed, allowing helpers to access the site and provide the specific CSS solution. The helper requested the solution be marked as accepted if it successfully addressed the issue.
Note: The conversation includes a code snippet (partially obscured in the input) that targets the variant pill styling.
Hello @EcomEO , Please share your store URL and password.
So that I will check and let you know the exact solution here.
Best regards,
Darshan
Hey @EcomEO
Your store is password protected, can you share your password as well?
Best Regards,
Moeed
Sorry @Moeed @Darshanp712
Password is removed
Hey @EcomEO
Follow these Steps:
-
Go to Online Store
-
Edit Code
-
Find theme.liquid file
-
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed

