If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
When viewing my sites page speed grade using gtmetrix.com, I’m seeing the following issue…
The following image(s) are missing width and/or height attributes.
http://allurexpressions.com/Logo.png (Dimensions: 300 x 105)
In the description given it says “Specifying a width and height for all images allows for faster rendering by eliminating the need for unnecessary reflows and repaints.”
Where should I go about doing so? My web address is “http://allurexpressions.com”. It’s not a big deal, I’m simply curious as I’ve been unable to find it. Any help is appreciated!
Open header.php and find this code
if (isset($k_option['general']['logo']) && $k_option['general']['logo'] != '')
$logo = '<img class="ie6fix" src="'.$k_option['general']['logo'] .'" alt="'.get_settings('home').'" />';
$logoclass = 'logoimg';
else // default logo
$logo = get_bloginfo('name');
$logoclass = 'logobg';
You can place the attributes on the img tag.
The topic ‘Specifying image dimensions (Logo)’ is closed to new replies.