Home Forums Basel support forum Image lazy load

Image lazy load

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #156930

    Al
    Participant

    Hi, how to disable image lazy loading on single product page only?
    Best regards.

    #156943

    Hello,

    You can disable the option in the Theme Settings > Performance https://prnt.sc/pwx40m

    Best Regards

    #156950

    Al
    Participant

    Please read my question carefully, I asked how to disable lazy loading ONLY ON SINGLE PRODUCT PAGE?

    #156965

    Hello,

    There is no option to disable option only on the single page. This is a global option.

    Best Regards

    #157244

    Al
    Participant

    Will this do what I want?

    function woodmart_disable_lazy_on_single() {
    basel_lazy_loading_deinit(true);
    }

    add_action( ‘woocommerce_before_single_product_summary’, ‘woodmart_disable_lazy_on_single’, 5 );

    #157448

    Hello,

    Yes, please try this code, we have checked at our side it should work properly.

    Best Regards

    #157592

    Al
    Participant

    hi,
    ok, thanks for checking.

    Regards

    #157611

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Image lazy load’ is closed to new replies.