This topic has 6 replies, 2 voices, and was last updated 4 years, 5 months ago ago by Olga Barlow
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.
Hello,
We have sent you updated files. Try and let me know if it helps.
Regards
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.
Hello,
Yes.
Regards
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.
Hello,
Great. I’m glad to hear that.
We’ll include this fix to our next update.
Regards
You must be logged in to reply to this topic.Log in/Sign up