Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Can anyone tell me or help me in hiding a specific varaint option sice it only has one variant and if i delet that then the whole product gets deleted.I tried something by changing the code but it did not work. Please someone help.
Solved! Go to the solution
This is an accepted solution.
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
#variant-radios-template--16399601729614__main .product-form__input:nth-child(3) {
display: none !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hello @yuvinater
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.
This is an accepted solution.
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
#variant-radios-template--16399601729614__main .product-form__input:nth-child(3) {
display: none !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Thank you, it worked.
@yuvinater can you please share this product page link?