hide a specific variant on my shopify product Prestige Theme

hide a specific variant on my shopify product Prestige Theme

JustNordic
Excursionist
31 0 5

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

 

 

Skärmavbild 2025-02-22 kl. 12.00.01.png

Replies 7 (7)
JustNordic
Excursionist
31 0 5

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??

 

Skärmavbild 2025-02-24 kl. 00.03.56.png

JustNordic
Excursionist
31 0 5

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.

devcoders
Shopify Partner
1098 134 303

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.
Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
JustNordic
Excursionist
31 0 5

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

DaisyVo
Shopify Partner
4275 467 560

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 </head> tag and add the following code above </head> 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 %}

 

 

DaisyVo_0-1740230187223.png

 

Please let me know if it works. Thank you!

Best,
Daisy - Avada Support Team.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
DaisyVo
Shopify Partner
4275 467 560

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

DaisyVo_1-1740230286746.png

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
JustNordic
Excursionist
31 0 5

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