Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #18637

    When viewing my sites page speed grade using, I’m seeing the following issue…

    The following image(s) are missing width and/or height attributes. (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 “”. 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.




    Awesome! Thanks, I spent quite some time looking through that code and for whatever reason couldn’t find it.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Specifying image dimensions (Logo)’ is closed to new replies.