Legenda theme breakes Lazy Load of Images

This topic has 6 replies, 2 voices, and was last updated 4 years, 5 months ago ago by Olga Barlow

  • Avatar: fabio_vito
    Fabio
    Participant
    May 18, 2020 at 10:05

    Dear Support,

    I contact you because since I uploaded the legenda theme the lazy load provided by SG Optimizer (very common performance tool provided by SiteGround) has been broken. I have been in contact with SG and they performed a deep analysis.

    They reported that the issue comes from the Legenda theme: it overwrites the default WooCommerce template in woocommerce/templates/cart/cart.php which overwirtes the default one of the plugin. It uses wp_kses_post( $thumbnail ) which clears all the HTML we place which breaks the lazy loading functionality.

    I cannot afford to run the Legenda theme with no lazy load. Could you please help me to solve the issue? why the cart.php is overwrote? could you please find a way to use a method that avoids to clear the HTML generated by lazy load?

    Thanks for your help.

    F.

    5 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 19, 2020 at 18:22

    Hello,

    We have sent you updated files. Try and let me know if it helps.

    Regards

    Avatar: fabio_vito
    Fabio
    Participant
    May 19, 2020 at 18:54

    Dear Olga,

    Thank you very much. Could you please confirm that I should replace the file located here: /public_html/wp-content/themes/legenda/woocommerce/cart ?

    I just want to be 100% sure. Following your confirmation I will test it.

    Thanks.

    Fabio.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 19, 2020 at 23:41

    Hello,

    Yes.

    Regards

    Avatar: fabio_vito
    Fabio
    Participant
    May 20, 2020 at 09:17

    Dear Olga,

    Thank you very much for your support. The code worked properly and the lazy load problem is now fixed.
    I am wondering, with the intention of not loosing this change in the future, are you planning to implement this change in the next Legenda release or on the contrary you advise me to copy the provided file into the Legenda child?
    Thanks for your help.
    Fabio.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 20, 2020 at 19:36

    Hello,

    Great. I’m glad to hear that.
    We’ll include this fix to our next update.

    Regards

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

You must be logged in to reply to this topic.Log in/Sign up

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