I have created a new metafield for an image file.
I am successfully outputting the image with the following code:
{{ product.metafields.product_fields.full_width_image | image_url: width: 2000 | image_tag: alt:, srcset: nil, class: ‘full-image’ }}
The ‘Alt Text’ is not being output. I’ve followed the instructions provided here and double checked the image does have alt text (doh):
You can use the alt keyword argument to set alt text for the image.
If no value is provided, then the media alt text is used. If no image description is available, then this value will default to an empty string.
Any help appreciated