WordPress.org

Ready to get started?Download WordPress

Forums

Where to enter header height and width (5 posts)

  1. kmessinger
    Volunteer Moderator
    Posted 4 years ago #

    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

  2. esmi
    Forum Moderator
    Posted 4 years ago #

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

  3. kmessinger
    Volunteer Moderator
    Posted 4 years ago #

    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.

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    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.

  5. kmessinger
    Volunteer Moderator
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.