Legenda theme breakes Lazy Load of Images

5 replies2 participantsUpdated by Olga Barlow

  • Avatar: fabio_vito
    Fabio
    Participant

    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
    Participant

    Hello,

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

    Regards

    Avatar: fabio_vito
    Fabio
    Participant

    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
    Participant

    Hello,

    Yes.

    Regards

    Avatar: fabio_vito
    Fabio
    Participant

    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
    Participant

    Hello,

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

    Regards

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register