Archived topic
Logo does not have explicit width and height
24 replies · Started by ETO on April 13, 2021
That is odd because I've had that error on all my sites and I'm running GP 2.0 until I fix with the function above.
Is this the one you're using? https://generatepress.com/forums/topic/logo-does-not-have-explicit-width-and-height/#post-1762272
Can you share the error log you're seeing? Let us know. :D
Yes
Yes
Can you share the specific error you're seeing? Perhaps it can give us an idea to why it's occurring. (perhaps plugin conflict related or functions.php related.)
Image elements do not have explicit width and height. For the logo set in Customizer.
Hi there,
can you start a new topic and share a link to your site so we can see the setup.
Why has this issue not been fixed yet? I have the same problem although I removed the logo and re-uploaded it again.
Hi there,
in the next week we'll be releasing major updates to GP ( GPP, GB and GBP ) in Alpha. Which has the fix included.
The code Tom provided previously should resolve that issue for now.
Hi, there!
Has this issue been fixed with the last update?
Hi there,
Yes it is.
But if in case it doesn't apply after you update, try removing the existing logo and then re-add it again. :D
Make sure you clear any forms of cache as well (incase there's page caching).