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
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024