Support » Fixing WordPress » Where to enter header height and width
7 years, 3 months 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?
Within the page markup: <img src="foo.jpg" width="120" height="100" alt="wibble" />
<img src="foo.jpg" width="120" height="100" alt="wibble" />
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:
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.