Specify image dimensions

Posted in: Newsmag
Post count: 75

I am having this error on gtmetrix.

The following image(s) are missing width and/or height attributes.

http://www.turismonaturquia.com/wp-content/uploads/2015/04/istambul-320×50.jpg (Dimensions: 320 x 50)
http://www.turismonaturquia.com/wp-content/uploads/2015/04/istambul-468×60.jpg (Dimensions: 468 x 60)
http://www.turismonaturquia.com/wp-content/uploads/2015/04/istambul-728×90.jpg (Dimensions: 728 x 90)
http://www.turismonaturquia.com/wp-content/uploads/2015/04/tnt-logo-normal-mobile.png (Dimensions: 231 x 90) (2 uses)
http://www.turismonaturquia.com/wp-content/uploads/2015/04/tnt-logo-normal.png (Dimensions: 272 x 90)

How i will solve this.

First 3 images ar ethe ads part. on the top.
ANd other two are logos.

Post count: 7909

Hi,

Try to add width and height to the banners something like this:

<div class="td-visible-desktop">
    <a href="#" target="_blank"><img src="http://demo.tagdiv.com/newsmag/wp-content/uploads/2014/08/rec728.jpg" alt="" width="728px" height="90px" /></a>
</div>

Unfortunately for logo cannot be added width and height as when you change the header style also the logo size it’s changed. You can test also our demo, it has this error.

Thanks!

Post count: 75

Thank you very much for the ads part. It was my fault i ddint see that i can fix easily.

But for the header logo we must find a solution.

Post count: 7909

These errors are not important, but if you want you can add style="width:272px; height:90px;" in logo.php if you use header styles that use that logo size like default header: http://screencast.com/t/uGyqewx9
Result: http://screencast.com/t/PlJW8xot7x

Also you can do this for mobile logo altering logo-mobile.php

Thanks!

Post count: 75

thanks how we will do for the footer.
I have seen that little bit complicated.

Thanks

Post count: 7909

Hi,

Also for footer logo you can add style like this – http://screencast.com/t/up19GAXFqCbd

Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newsmag’ is closed to new topics and replies.