Hide a specific variant from the product page

Topic summary

A Shopify store owner wants to hide a specific product variant called “Code couleur” from customers while keeping it visible for internal use only.

Proposed Solutions:

  • Solution 1: Add custom CSS code to the theme.liquid file before the closing </head> tag to hide the variant selector
  • Solution 2: Insert CSS code into theme.css or base.css file targeting the specific variant fieldset with display: none !important

The original poster tested the first solution but reported it didn’t work. A helper then clarified to ignore width specifications and just add the CSS code.

Current Status: The discussion remains open with the store owner (lothaire-boutiques.myshopify.com) seeking clarification on implementation details. Multiple community members are providing CSS-based hiding solutions, but successful implementation has not yet been confirmed.

Summarized with AI on November 3. AI used: claude-sonnet-4-5-20250929.

Hello !

I don’t want this “Code couleur” variant to show to customers. It’s only useful for me. Can I hide it ?

My website is lothaire.fr

Hi @LothaireBordeau

would you like to share your store URL and password if any please.
so i can check and provide you possible solution for your question.

Hi @LothaireBordeau

How are you?

You can follow the following steps:

  1. Please go to the Online Store.

  2. Then Edit Code.

  3. Please find the theme.liquid file.

  4. Please add code before closing the tag tag.


If this solution is worked, then please Like this and Mark this as accepted solution!

Laddi

1 Like

lothaire-boutiques.myshopify.com is the URL.

There’s no password.

This doesn’t work.

Hello !

What does " the width from the html" mean ?

Ignore the width, just add the css

Hello, @LothaireBordeau

  1. Go to Online Store
  2. Edit Code
  3. Find theme.css/base.css file
  4. Add the following code in the bottom
fieldset#ProductSelect-template--23659501224261__main-9731374481733-option-2 {
    display: none !important;
}

Thanks!