I am unable to get the Image title tag to display a variable

10 0 2

Trying to add alt tag title to auto populate based on alt text. My delivered  code is displaying title = "". 

alt="{{product.title }}"
title="{{product.title }}"


alt="{{ product_card_product.featured_media.alt | escape }}"
title="{{ image.alt | escape }}"


Is there anything wrong with this code? How can I add a meaningful display so title is different than alt text?


Replies 0 (0)