Can I use HTML code in Shopify product variation fields?

Amit55
New Member
6 0 0

Hi, 

I want to put some HTML code in Product Variation Field, But it display like this ..variation.PNG

 

Here is the code for that  ..

 

value.PNG

 

Value is the variable which store value of variation..

 

re.PNG

 

What should i write to get HTML code format in Proper design.... Please help

Replies 4 (4)

GemPages
Shopify Partner
5588 1261 1203

Hi @Amit55 

You can change all double quotes to single quotes on the code you added. I'm not sure this will work 😅

GemPages_0-1679215663180.png

 


This way works for me

GemPages_1-1679215753880.pngGemPages_2-1679215777551.png

 

Best regards,
GemPages Support Team

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
Amit55
New Member
6 0 0

Hi, 

 

Amit55_1-1679228724357.png

 

 

you have used double quote in option values -- 

<h6 class="test">abcd</h6>

 

I want to use this code  in variation values -- 

<div class="months">1 Month</div><p>1 Month Bottle</p>

 

Thanks & Regards

Amit55
New Member
6 0 0

The above code is not working on my website.

Amit55
New Member
6 0 0

Thanks & Regards