Hi,
I saw that header logo do not have explicit width and height which is causing CLS issue in google page speed.
What can I do to add them? Im using last version template.
Thanks
Hi TheZugzwangBlog, on Newsmag the height and width was added of normal logo, but not for full width logo (header style 7, 8 and 10), so for the moment in case that you se one of the full width header styles, then the height and width is not set. If you want I can check to see if I can not provide the right steps to add them in the theme files.
Thank you!
Please Calin Id like to add the code for setting up the image. What I have to do?
Thanks
Hi,
To display the width and height on header style 7, 8 and 10 please replace the code from this file wp-content/plugins/td-composer/legacy/Newsmag/parts/header/logo-text.php with the one from here -> https://pastebin.com/FDjJD3Lb
After that when you use one of those headers the height and width for logo should be set.
Let me know the results!
Sorry, I wrote that the problem was solved when I saw that it did not appear in google insights, however the code crashed my website. I have had to restore the old one.
“There has been a critical error”
Hi,
If you want we can take a look at this problem, for this please make a full backup for your website and database and contact us at contact@tagdiv.com and provide wp-admin and cPanel access, also include the link of this topic and provide as many details and screenshots you can.
Thank you!