Support » Fixing WordPress » Where to enter header height and width

  • In trying to tune my site to load faster, one error I find is missing width attribute and height attribute in my header jpg.

    I have made adjustments to the style sheet but this does not have any effect. Where should I enter these attributes?

    Regards,

    Keith
    http://ourexcellentadventures.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • Within the page markup: <img src="foo.jpg" width="120" height="100" alt="wibble" />

    Thread Starter kmessinger

    (@kmessinger)

    Sorry, I didn’t explain better. I am using the Dynamic Headers plugin so I was thinking I could set the width and height in my CSS. The plugin generates the src information but does not generate width and height.

    I have also asked the plug in creators.

    Does the image have a unique id or class that you could use as a hook for your CSS? If so, something like:

    .this-image {
    width:120px;
    height:100px;
    }

    should work.

    Thread Starter kmessinger

    (@kmessinger)

    I stopped using the dynamic headers. Not sure why I was using them in the first place. Now I can make a proper entry in header.php.

    Thanks for the help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Where to enter header height and width’ is closed to new replies.