LCP, CLS errors, unstable layout, layout shift

This topic has 24 replies, 2 voices, and was last updated 7 months, 2 weeks ago ago by Luca Rossi

  • Avatar: Malvine
    Malvine
    Participant
    March 1, 2024 at 21:23

    My friends

    i have been using the theme for quite some time, and I like it very much.
    However, it has a problem, that has lead to google seeing my website as a website giving a ‘poor experience”.
    On its Google Search central (formerly google webmaster tools” it says, that the pages of my website give a poor experience to the users, due to CLS and LCP errors. They are cause by an unstable layout (shifting elements in the layout) and other issues, related to the code of the theme.
    I searched and searched what was the problem, and these are:

    lack of width and height attribute for the logo (it needs to be added in the code)
    shifting images of the products, on the products page.

    These are the main problems, I would like to have help solving.
    My theme has the latest version, also all the plugins are updated (except the blubbry plugin, I will just upload the new version and install it), wordpress has the latest version as well.

    Thank you so much for the lovely theme
    Martyna

    23 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    March 2, 2024 at 10:01

    Hi @Malvine,

    We hope this message finds you well.

    To address this issue, we kindly request that you temporarily disable all third-party plugins on your website, with the exception of those that are Theme Required/Recommended, as detailed here: [https://www.8theme.com/documentation/xstore/plugins/included-plugins/](https://www.8theme.com/documentation/xstore/plugins/included-plugins/). After doing so, please clear your browser cache and check your site again. This step is to determine if there is a conflict caused by any additional third-party plugins.

    Should this resolve the issue, you will then need to reactivate each third-party plugin individually to identify which one is causing the conflict. Once identified, we recommend contacting the Plugin Author for further assistance.

    If the problem persists, please keep all third-party plugins deactivated and grant us permission to conduct a thorough investigation on your site. This may include deactivating all third-party plugins and any on-site customizations.

    Please note: It is imperative that you create a complete backup of your website before proceeding with the aforementioned steps, as they may impact your site’s functionality.

    We appreciate your cooperation and look forward to resolving this matter promptly.

    Yours sincerely,
    The 8Themes Team.

    Avatar: Malvine
    Malvine
    Participant
    March 2, 2024 at 18:57

    Friends

    I did the actions you suggested in the past. They did not help.
    As we were looking for the reason for slow speed. Also I remember something was blocking the checkout process.
    Please help,
    the situation is, that if we add new content to the site, or update the previous one (correct the articles etc), which should upgrade the site, as there is valuable content, it works in the opposite way. Traffic nearly stops.

    We have got original content, original products, photos, etc, yet, nearly zero traffic.
    We will add the login details on the right now.

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    March 4, 2024 at 09:10

    Dear Malvine,

    We hope this message finds you well.

    We’re writing to bring to your attention an issue that has been identified with the loading time of your website’s homepage. Upon analysis, it appears that the primary contributing factor is the size of a particular image, which can be viewed here:

    https://prnt.sc/vf6jmySJv7eU

    Our team has conducted tests using both GTMetrix and Google PageSpeed, which have confirmed the impact of this image on your site’s performance. The results of these tests can be reviewed at the following links:

    – GTMetrix Report: https://gtmetrix.com/reports/ecohealthlab.com/itxPry1G/
    – Google PageSpeed Analysis: https://pagespeed.web.dev/analysis/https-ecohealthlab-com/bns33j9lwn?hl=en&form_factor=desktop

    To enhance your website’s loading speed, we recommend the following actions:

    1. Replace the aforementioned image with a smaller, more optimized version to reduce its impact on loading times.
    2. Remove any unnecessary plugins that are currently active on your website, as they may be contributing to slower performance.
    3. Disable the lazy load feature of the Smush plugin and consider enabling the Lazyload Images/Videos feature of the WP-Rocket plugin instead.

    Implementing these changes should result in a noticeable improvement in your website’s loading efficiency.

    We appreciate your attention to this matter and are here to assist you with any further questions or concerns you may have.

    Best regards,
    The 8Theme Team

    Avatar: Malvine
    Malvine
    Participant
    March 4, 2024 at 15:18

    Hello friends

    Thank you for your email and testing.
    However, the reason for my messages to you, is different.
    The reason are the errors in the code of the website, that result in the CLS and LCP errors, reported by Google webmaster tools.
    These errors say, that there are at least two issues:
    The logo image is missing the width and height attributes (in the code), whioch results in the image shifting sizes when the website is loading,

    second: the product images on the product pages, they also shift the sizes, and shift their placement on the page.

    These two things are major, and result in google associating my website as the one giving the users a poor experience (mobile users).
    For the moment, there are 123 pages with these errors, LCP and CLS.

    This is quite important
    My friends, my website need to have these issues fixed, because it cannot function like it used to. If it cannot be fixed, I will need to switch to another theme.

    Avatar: Justin
    Luca Rossi
    Support staff
    March 4, 2024 at 15:49

    Dear Malvine,

    We have conducted a thorough review of the issues you reported but were unable to replicate them on our end: https://www.awesomescreenshot.com/video/25498159?key=32edf77e34f25bda25d98099dbcced86

    It has come to our attention that the WP-Rocket plugin, which you are currently utilizing, may occasionally cause disruptions to your website during the cache reloading process, particularly when coinciding with Google Webmaster Tools’ crawling activities.

    To facilitate a more accurate diagnosis, we kindly request that you temporarily deactivate the WP-Rocket cache plugin. Following this, please proceed to Google Webmaster Tools to perform another assessment.

    Should you require any further assistance or have additional questions, please do not hesitate to reach out to us.

    Best regards,
    The 8Theme Team

    Avatar: Malvine
    Malvine
    Participant
    March 4, 2024 at 17:14
    Avatar: Malvine
    Malvine
    Participant
    March 4, 2024 at 17:50
    For their first suggestion, for mobiles, they say:
    https://pagespeed.web.dev/analysis/https-ecohealthlab-com-product-organic-bed-sheet/r8cs57ocy2?form_factor=mobile
    
    "
    Avoid large layout shifts 4 layout shifts found
    These are the largest layout shifts observed on the page. Each table item represents a single layout shift, and shows the element that shifted the most. Below each item are possible root causes that led to the layout shift. Some of these layout shifts may not be included in the CLS metric value due to windowing. Learn how to improve CLSCLS
    Element
    Layout shift score
    ORGANIC BED SHEET
    <h2 class="product-name product_title">
    0,290
    …jquery/jquery-migrate.min.js?ver=3.4.1(ecohealthlab.com)
    A late network request adjusted the page layout
    …jquery/jquery.min.js?ver=3.7.1(ecohealthlab.com)
    A late network request adjusted the page layout
    ORGANIC BED SHEET PRODUCT INFORMATION Rated 5.00 out of 5 based on 1 customer r…
    <div class="container">
    0,007
    …jquery/jquery-migrate.min.js?ver=3.4.1(ecohealthlab.com)
    A late network request adjusted the page layout
    …jquery/jquery.min.js?ver=3.7.1(ecohealthlab.com)
    A late network request adjusted the page layout
    Cart 0 items for $0.00
    <div class="shopping-cart-widget a-right">
    0,000
    …jquery/jquery-migrate.min.js?ver=3.4.1(ecohealthlab.com)
    A late network request adjusted the page layout
    …jquery/jquery.min.js?ver=3.7.1(ecohealthlab.com)
    A late network request adjusted the page layout
    div.container > div.table-row > div.menu-icon > i.icon-reorder
    <i class="icon-reorder">
    0,000
    Eco Health Lab
    
    Media element lacking an explicit size
    …jquery/jquery-migrate.min.js?ver=3.4.1(ecohealthlab.com)
    A late network request adjusted the page layout
    …jquery/jquery.min.js?ver=3.7.1(ecohealthlab.com)
    
    A late network request adjusted the page layout
    Avatar: Malvine
    Malvine
    Participant
    March 4, 2024 at 17:53

    PageSpeed insights point out, for both the home page, product pages (and all other pages), that the logo element is missing the width and height attributes.
    plus, the issues described above. layout shift.

    They point this out, and google webmaster tools as well

    Avatar: Justin
    Luca Rossi
    Support staff
    March 5, 2024 at 06:29

    Dear Malvine,

    We hope this message finds you well.

    To address the issue of the missing width and height attributes for the logo on your website, we kindly ask that you insert the following code snippet into the functions.php file located within your child theme directory:

    
    function etheme_logo( $logo = 'logo', $echo = true ) {
    
        global $panel_filters;
    
        $logoimg = ( $logo == 'fixed' && etheme_get_option( 'logo-fixed' ) != '' ) ? etheme_get_option( 'logo-fixed' ) : etheme_get_option( 'logo' ) ;
    
        $logoimg = etheme_get_logo_data($logo);
    
        $logoimg_url = $logoimg['url'];
    
        $logoimg_alt = $logoimg['alt'];
    
        $logoimg_url = apply_filters('etheme_logo_src',$logoimg_url);
    
        if($panel_filters) {
    
            $logoimg_url = apply_filters('logo_panel_filters',$logoimg_url);
    
        }
    
        $custom_logo = etheme_get_custom_field('custom_logo', et_get_page_id());
    
        if($custom_logo != '') {
    
           $logoimg_url = $custom_logo;
    
        }
    
        if ( !$echo ) return '<a href="' . home_url() . '"><img src="' . esc_url($logoimg_url) . '" alt="' . esc_attr($logoimg_alt) . '" /></a>';
    
        echo '<a href="' . home_url() . '"><img width="300px" height="55px" src="' . esc_url($logoimg_url) . '" alt="' . esc_attr($logoimg_alt) . '" /></a>';
    
        ?>
    
    <?php }
    

    Regarding the layout shift issue, please note that this pertains to the optimization aspect and falls outside our standard support parameters. Consequently, we are unable to guarantee an improved Google PageSpeed score.

    Nevertheless, our team of expert developers is available to offer a customized solution tailored to your specific needs. Should you wish to explore this option, we invite you to submit a request for customization services. Upon receipt of your request, we will provide you with a comprehensive estimate of the associated costs. You can submit your request via the following link: [8Theme’s Customization Services](https://www.8theme.com/account/#etheme_customization_panel).

    We appreciate your understanding and look forward to assisting you further.

    Best regards,
    The 8Theme Team

    Avatar: Malvine
    Malvine
    Participant
    March 5, 2024 at 11:30

    My friends

    The shifting images of the products on the product pages should be corrected, as on the product page we cannot have any unstable elements. It is not the customization, it is the default, the fundamental.
    It has been like this with the shifting elements for a long time, isince the beginning.
    This is the reason for the errors on the Webmaster tools page.
    What we need, is a fully working product page, and I am talking about the default, fundamental things, that need to be stable.
    The product images are the most important part here.

    Looking forward to your answer
    Thank you

    Avatar: Justin
    Luca Rossi
    Support staff
    March 5, 2024 at 12:37

    Hi @Malvine,

    We can’t preproduct the shifting layout issue on our end.

    Please record a video of the problem for a better understanding. Upload it on a filesharing service, for example – https://wetransfer.com/ , and provide us with URL.

    Should you require any additional assistance or have further inquiries, please do not hesitate to reach out to us.

    Best regards,
    The 8Theme Team

    Avatar: Malvine
    Malvine
    Participant
    March 6, 2024 at 13:35

    Hey Luca

    Thank you for your message. I believe we can do it.

    The problem is clearly pointed out by for example
    PageSpeed Insights
    https://pagespeed.web.dev/
    When checking the results for mobiles.
    I just opened my website on my iPhone, and I opened a product page. The images were shifting.

    Page speed insights shows it as well. I pointed your attention to it in my previous message, there are links to the information PageSpeed insights gives. Please have a look on these. You can also simply place my website’s link to pagespeed insights page and check the details for mobiles. The shifting images / layout will be described there on top of the things to correct.
    Tha images on the product page are also placed incorrectly, they overlap the product name.

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    March 7, 2024 at 09:29

    Dear Malvine,

    We hope this message finds you well.

    We’re writing to inform you that the issue pertaining to significant layout shifts, which was previously identified, has been traced back to the WP-Rocket plugin. Specifically, the feature that removes unused CSS had inadvertently eliminated the necessary styling for the product gallery, resulting in a malfunction during page loading.

    To address this, we have taken corrective action by adding the relevant CSS selectors to the SafeList. I am pleased to report that this has resolved the problem, and the gallery should now function correctly. You can view the corrected gallery via the following link:

    https://prnt.sc/hSAXouaFFvtF

    May we kindly ask you to review the gallery at your earliest convenience and confirm that everything is now in order?

    Furthermore, we would like to gently remind you that any issues arising from third-party plugins fall outside the scope of our support services. Should you encounter any further difficulties with such plugins, it is advisable to reach out directly to the respective plugin authors for assistance.

    Thank you for your attention to this matter. We appreciate your understanding and cooperation.

    Best regards,
    The 8Theme Team

    Avatar: Malvine
    Malvine
    Participant
    March 11, 2024 at 19:03

    My friends

    It is like it was 🙁
    The errors with the images shifting still remains.
    when viewed on mobiles

    Avatar: Justin
    Luca Rossi
    Support staff
    March 12, 2024 at 06:22

    Dear Malvine,

    We regret to inform you that the matter you are experiencing is associated with the ‘Remove Unused CSS’ feature of the WP-Rocket plugin.

    Any issues arising from third-party plugins fall outside the scope of our support services. Should you encounter any further difficulties with such plugins, it is advisable to reach out directly to the respective plugin authors for assistance.

    Thank you for your attention to this matter. We appreciate your understanding and cooperation.

    Best regards,
    The 8Theme Team

    Avatar: Malvine
    Malvine
    Participant
    March 12, 2024 at 14:58

    Hello friends

    I wrote to the person from wp-rocket. I will wait for their answer. Thank you so much.
    I will let you know.

    Avatar: Justin
    Luca Rossi
    Support staff
    March 13, 2024 at 06:09

    Dear @Malvine,

    We hope this message finds you well.

    Please keep us informed on the progress of the matter at hand.

    Kind regards,
    The 8Theme Team

    Avatar: Malvine
    Malvine
    Participant
    April 20, 2024 at 20:55

    Hello friends

    I am implementing your suggestions, one by one.

    I have a question here.
    You suggested (based on Page Speed insights, thank you for this), that:
    “To enhance your website’s loading speed, we recommend the following actions:

    1. Replace the aforementioned image with a smaller, more optimized version to reduce its impact on loading times.

    You are right, the image above the fold is slowing the website down.
    I am wondering how to reduce its size without reducing its quality?

    Many thanks!

    Avatar: Justin
    Luca Rossi
    Support staff
    April 22, 2024 at 03:25

    Dear Malvine,

    We hope this message finds you well. We would like to recommend that you consider using the Imagify plugin for your image optimization needs. It is a robust solution, although please note that it is a paid service.

    For more information, you can visit their website: [https://imagify.io/](https://imagify.io/)

    Best regards,
    The 8Theme Team

    Avatar: Malvine
    Malvine
    Participant
    May 5, 2024 at 18:56

    Hello friends

    Thank you for your response.
    Very likely I will apply your suggestion!
    But before it happnes, I have a question:
    last week the product pages stopped showing product images.
    I tried all the important plugins and contacted people from wp-rocket plugin. Later I deactivated it, but it did not change the situation.
    I just applied the new theme version, but the problem remains.

    The problem is very recent. I need your help.
    Thank you
    https://ecohealthlab.com/product/organic-zabuton-meditation/

    Avatar: Justin
    Luca Rossi
    Support staff
    May 6, 2024 at 04:00

    Hi @Malvine,

    Please try adding this custom CSS under Theme Options > Theme Custom CSS:

    
    .sxy-zoom-bg {
         visibility: visible;
    }
    

    Hope it helps!

    Avatar: Malvine
    Malvine
    Participant
    May 6, 2024 at 17:51

    Thank you!
    It works 🙂

    Avatar: Justin
    Luca Rossi
    Support staff
    May 7, 2024 at 05:17

    Hi @Malvine,

    Glad we’re able to help!

    Best Regards,
    The 8Theme Team

  • Viewing 24 results - 1 through 24 (of 24 total)

The issue related to '‘LCP, CLS errors, unstable layout, layout shift’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.