Tomi14 Posted November 11, 2022 Share Posted November 11, 2022 When I run PageSpeed Inights it says I have no alt text for images from blockreassurance. This is how my original blockreassurance.tpl looks: Quote {if $elements} <div id="block-reassurance"> <ul> {foreach from=$elements item=element} <li><img src="{$element.image}" alt="{$element.text|escape:'quotes'}"/> <span>{$element.text}</span></li> {/foreach} </ul> </div> {/if} How to fix it? Link to comment Share on other sites More sharing options...
JBW Posted November 15, 2022 Share Posted November 15, 2022 On 11/11/2022 at 10:07 PM, Tomi14 said: alt="{$element.text|escape:'quotes'}"/> <span>{$element.text} It uses same text for alt as for the text itself - check if you have entered something there Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now