Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
HI
i have lots of images on my website and all of them have got alt text done from the content section of shopify. however, the ones which have been added in custom liquid or html with the links, are not showing their alt text
is there a way to rectify this so that it picks up the alt text related to the image
rather than having to add the alt text to every single image in the html or custom liquid
Hi,
Try to use Metafield for Image Alt Text
Code example to link the Alt Text with the Image in Liquid
<img src="{{ 'your-image-url-here' | asset_url }}" alt="{{ your_object.metafields.global.alt_text }}">
HI
thank you. im not quite sure how this works. Do i need to setup metafields for the images? how will they be pulled in from the metafields?
right now the alt text is in shopify, but because we have input the link of the image in custom liquid, it is not pulling the alt text through
ive been told to add the alt text for all the images i have used as a link, so wondering if there is a code which would pull all the alt text through for any images which are installed this way
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025