How to add aria-label (accessibility attribute) to Shopify Liquid generated video_tag in a theme? If not supported, what is the recommended workaround?
If it’s a product media, the product title is added as the aria-label by default.
Hey @tim_tairli ,
thanks for your reply. However, this is not a product media.
I do not have non-product-media videos handy.
If it does not output aria-label at all, you can add it:
{{ VideoDrop | video_tag | replace_first: '<video', '<video aria-label="test"' }}
Or it can be a bit more complex if something unwanted is rendered, but still .