A user seeks to hide the color variant selector on product pages while keeping the size option visible, as colors are already displayed through product variations in the Impact theme to avoid duplication.
Solutions Provided:
Multiple CSS-based solutions were offered:
Adding CSS to base.css targeting the first product option
Inserting code in theme.liquid before the closing tag
Adding CSS to theme.css to hide the product picker entirely
Using Custom CSS in Theme settings to hide the first variant picker fieldset
Resolution:
The issue was resolved using CSS code that targets the first variant option ([name="option1"]) with display: none !important;. The user confirmed this solution worked perfectly and improved their product page appearance. Other suggested solutions were tested but did not work for their specific setup.
Summarized with AI on November 2.
AI used: claude-sonnet-4-5-20250929.
Is anyone able to help me out with a code to hide the color variant on product pages. I want to keep the size option but hide the color option (as colors are being displayed through product variations on Impact, I don’t want to display it twice).