Dynamically updating variant title

Highlighted
New Member
4 0 0

I am running into trouble trying to update the variant title dynamically on my product page.

 

I have managed to replace some script in product_template, that now displays the variant title instead of the product title:

 

<h1 class="variant__current-title h2 text-center" itemprop="name">{{ current_variant.title }}</h1>

I feel like I am almost there, however, I can't get the variant titles to update when I select between different colors.

 

Any help is greatly appreciated.

0 Likes