Archived topic
Use explicit width and height on image elements Issue in GTMetrix
4 replies · Started by Suraj Katwal on November 17, 2020
I am having a problem while testing site in GTMetrix with the logo and related posts (WP Show Posts)
Hello, same problem I was about to open a post.
Even though in the settings I write the correct numbers in Width and Height, it doesn't appears in the WP Show Post's HTML images.
Hi there,
for the logo - try removing the Retina logo from the Customizer > Site Identity as this not required when using an SVG.
For the WP Show Posts - setting explicit sizes in the WP Show Post settings will remove the WP src-set and the width and height attributes. You would need to leave those fields empty and set their sizes using CSS if required.
Thank you it helped for the WP Show Post :)
But I already don't have a retina logo in site identity. I just use the first section to put my logo.
Hi Maxime can you create a new topic where you can share a link to your site so i can take a look.