- This topic has 11 replies, 5 voices, and was last updated 5 years, 5 months ago by
David.
-
AuthorPosts
-
November 14, 2020 at 1:04 am #1530693
Iswan
Hai. I use Generatepress in my web.
But i found problem in my Google Search Console that my web have a poor web core vital…
Could you give me a solution?
November 14, 2020 at 10:56 am #1531354Leo
StaffCustomer SupportHi there,
That’s a pretty broad statement for us to help unfortunately.
Did the search console provided any details on what they are referring to?
Do you get the same result if all plugins disabled except GP Premium?
November 14, 2020 at 11:06 am #1531365Mathieu
Not my thread, but on the subject, I found that the logo is a problem because since there’s no height on the IMG tag, it does cause a layout shift when it does gets downloaded and shows up.
Not really significant to the eye test but the shift is there for Web Vitals.
November 14, 2020 at 12:46 pm #1531472Tom
Lead DeveloperLead DeveloperIf you’re using GP 3.0 with flexbox enabled, the logo should have dimensions in its HTML 🙂
November 14, 2020 at 1:04 pm #1531477Mathieu
Sounds like something that will break some stuff and also sounds like something I should do because I guess long term that’s the way you’re going.
How can I enable that just to test?
November 15, 2020 at 11:27 am #1532566Tom
Lead DeveloperLead DeveloperYou can enable it in the Customizer and you’ll see the live preview load. That should show you whether your site is compatible. The only time it won’t be is if you have a lot of custom CSS/HTML.
November 17, 2020 at 7:42 pm #1535517Iswan
Hai Tom, Sorry for my late respons… And thx for you & team quick respond….
I have trouble in LCP n CLS
Score of LCP is 3.1s and CLS is 0,36, its beat me and effect to my SEO strategy.I dont want to change generatepress, cz i still believe GP is one of best theme in world…
So plis gimme some advice to save my blog.
Hope you and tim can fix this.
Cheers…
November 18, 2020 at 4:52 am #1535889David
StaffCustomer SupportHi there,
the main issue i see is TTFB ( Time to First Byte ). Run a GTMetrix test on you site and you will see a long waiting time for the initial request to be processed by your server. Have a word with your Hosting company, any improvements you can make to the server response times will improve overall performance.
LCP Issues –
1. you have Lazy Loading applied to all images, you should exclude the Logo from this as its causing layout shift. Most Lazy Loaders let you exclude images by CSS Class, you can use:
is-logo-imageto eliminate the logo.2. Fonts are taking a while to load, during which time they are set to fallback to a system font, this is causing a slight layout shift. There are various fixes to this such as preconnect to the google server or simply try serving them locally – this plugin does that for you:
November 19, 2020 at 12:13 am #1537132Iswan
Thanks David,
Can you give me the code to exlude lazy load? I am not a programmer, i just do copy and paste, i was search in google but i can’t understand…
I use lazyload from wp rocket.
Can you suggest me… Where i put the code, in function.php or etc.
November 19, 2020 at 1:47 am #1537226David
StaffCustomer SupportThis PHP Snippet:
function rocket_lazyload_exclude_class( $attributes ) { $attributes[] = 'class="is-logo-image"'; return $attributes; } add_filter( 'rocket_lazyload_excluded_attributes', 'rocket_lazyload_exclude_class' );Here is WP Rockets reference article for that:
https://docs.wp-rocket.me/article/15-disabling-lazy-load-on-specific-imagesAdding PHP is explained here:
https://docs.generatepress.com/article/adding-php/TLDR: If you’re using a Child Theme then you would place the code in the Child Themes functions.php – if you’re not using a Child Theme then install the Code Snippets plugin, and add the code to a new snippet.
November 19, 2020 at 4:51 am #1537402Iswan
Thanks david for your super support…
GP is the best theme in world…
November 19, 2020 at 5:43 am #1537445David
StaffCustomer SupportYou’re welcome – glad we could be of help!
-
AuthorPosts
- You must be logged in to reply to this topic.