How can I change swatch names to match selected variant color in Shopify Liquid?

Flaviyards123
Shopify Partner
1 0 0

i have a product page in that there are swatches with their name in that if i click on any swatches that swatches name should also be changed but that name should take the color of the selected variant  how to do it in shopify liquid where the color swatches and the same swatch color name should be print

Reply 1 (1)

JaypalSingh
Shopify Partner
6 0 1

Hello @Flaviyards123 
Hope you are doing well. 

Thank you for reaching out to Shopify Community. I'm here to help you.

Can you please share your product page URL so I can have a look at your concern?

 

Thank you