• Hi,

    I am using Hood Theme and I have a logo on the top left on my navigation. I have set this logo to 150×50 which works fine. But the tag doesn’t have the width and height attribute.
    Google PageSpeed tells me I should provide those attributes but how can I set these attributes?
    Is there a way to do DOM Manipulation with php or any other way to access the HTML?

    So currently the tag looks like this:

    <img alt="" data-src="https://www.example.de/wp-content/uploads/2017/08/Logo_150x50px.png" class=" lazyloaded" src="https://www.example.de/wp-content/uploads/2017/08/Logo_150x50px.png">
    
  • The topic ‘How to add width and height attribute to an img tag?’ is closed to new replies.