hide a specific variant on my shopify product Prestige Theme

hello, I am the worst at coding. But could someone help me hide this variant? Preferably if I could insert something direkt in the CSS box.

Thx alot!

www.lilla-varlden.se

https://www.lilla-varlden.se/products/barnvagn-optima

1 Like

Hello @JustNordic

Remove via Shopify Admin (Recommended)

  1. Go to Shopify Admin → Products
  2. Click on the product where you want to remove the variant.
  3. Scroll down to the Variants section.
  4. Find the variant option (e.g., “Model: 3 in 1”).
  5. Click the trash icon or delete the variant.
  6. If you want to remove the entire “Model” option, click Edit Options and delete the option name.
  7. Click Save and check if the variant is removed from the product page.

Hi @JustNordic

I hope you are well. You can follow our instructions below:
1/ Shopify admin > Online store > Edit code: https://prnt.sc/M4p-gua99Uf4
2/ Search for “theme.liquid” file: https://prnt.sc/b6xveIKe-Rh2
3/ Open the file and search for tag and add the following code above tag: https://prnt.sc/KWtKYyZkDtYJ

Here is the code for Step 3:

{% style %}
{% if canonical_url == "https://www.lilla-varlden.se/products/barnvagn-optima" %}
variant-picker.variant-picker > fieldset.variant-picker__option:nth-child(3) {
    display: none !important;
}
{% endif %}
{% endstyle %}

Please let me know if it works. Thank you!

Best,
Daisy - Avada Support Team.

Hi @JustNordic

This code only works for this product page
In case you want it to work for all products
Please delete these 2 lines

Hi!

Sorry for the delay in reply. But yess! This worked perfect! How every The Save button does not get chick so I cant klick save.

why??

Yes, unfortunately, this is not helping because I can’t fulfill the order due to a lack of mapping.

Many thanks! How every I have many diffrent products, and this code has to apply for a couple of them. :disappointed_face:

I resolved it by also enabling another option in my case, Enable Video Looping, which I didn’t have before. Together with the CSS code and a change in the settings, I was able to save it. Then, I simply switched it off.