Archived topic
IMG size attributes on logo
3 replies · Started by angela on October 18, 2020
I have been getting warnings in my google webmaster tools about content shifts. Seems to be image size attributes missing on a couple of things.
I got all of them fixed but now notice only the logo uploaded in the customize section of generatepress has no width or height attributes.
Is there a way to fix that? Or is there a way to use the imagesets to have different size logos on different size devices?
Hi there,
are you using the latest version of the theme ? GP 3.0.2
As that should have the image size attribs included.
If you do have the latest version and the problem persists then provide me a link so i can see whats up.
It looks like I am running 3.0.2 and premium 1.12.2
I do have a child theme but that really only has a functions.php in it and about 10 lines of css, nothing related to the logo or images
I also notice in the customize there is a logo width slide that I can not notice any difference in the css, or view source. at least that I see.
I also disabled all caching and speed and image optimization plugins
Still outputting without it
`<div class="site-logo">
<a href="https://www.sexswing.com/" title="SexSwing.com" rel="home">
<img class="header-image is-logo-image" alt="SexSwing.com" src="https://www.sexswing.com/wp-content/uploads/2020/10/sexswinglogo-3.jpg" title="SexSwing.com" />
</a>
</div>`
Hi there,
The size attribute should be there by default as seen here:
https://www.screencast.com/t/dcssLo9C6ZQ0
Can you disable all plugins except GP Premium, disable all your server cache if enabled, and activate the parent theme for us to take a closer look?