WordPress.org

Support

Support » How-To and Troubleshooting » Where to enter header height and width

Where to enter header height and width

  • kmessinger

    @kmessinger

    Forum Moderator

    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)
  • esmi

    @esmi

    Forum Moderator

    Within the page markup: <img src="foo.jpg" width="120" height="100" alt="wibble" />

    Moderator kmessinger

    @kmessinger

    Forum Moderator

    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.

    esmi

    @esmi

    Forum Moderator

    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.

    Moderator kmessinger

    @kmessinger

    Forum Moderator

    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.