Home › Forums › WoodMart support forum › prevent lazy load
prevent lazy load
- This topic has 8 replies, 3 voices, and was last updated 5 years, 1 month ago by Artem Temos.
-
AuthorPosts
-
September 24, 2019 at 12:57 am #146212
mitcheosParticipantHi, im using another plugin for the checkout. The lazyload feature is having issues with the images. Is it possible to disable lazy load for the checkout pages?
Thanks
September 24, 2019 at 7:49 am #146245
Aizaz Imtiaz AwanKeymasterHello,
You can disable the lazy load feature for the checkout pages. Try to add the following PHP code snippet to the child theme function.php file to do this
function woodmart_disable_lazy_on_page() { $current_page_id = get_queried_object_id(); if ( ! $current_page_id ) { $current_page_id = get_the_ID(); } $pages = [ 12036, 12037 ]; if ( in_array( $current_page_id, $pages ) ) { woodmart_lazy_loading_deinit( true ); } } add_action( 'wp', 'woodmart_disable_lazy_on_page', 1000 );
Remember one thing checkout page ID must be used in this code so it only affects the checkout page not the others.
You can use the page id in the $page array as i used 12036, 12037 just to set an example for you.
You can see the check out page id when you edit the page. In your case checkout page id is “12036”.
Screenshot: https://jmp.sh/8KxVVcn
Best Regards.
September 27, 2019 at 5:03 am #146925
mitcheosParticipantHi, i tried that but its not working? Any other ideas?
Thanks
MitchSeptember 27, 2019 at 7:10 am #146964
Artem TemosKeymasterHello,
Could you please disable all plugins that are not related to our theme and provide us your admin and FTP access so we can check it?
Thank you in advance
September 30, 2019 at 5:17 am #147438
mitcheosParticipantHi, Thats done now. Also i have another issue when i click on my account icon nothing happens.
September 30, 2019 at 6:09 am #147447
mitcheosParticipantSorry i mean when i click on the wishlist – it doesnt show the wishlist contents. My account is ok.
September 30, 2019 at 7:02 am #147465
Aizaz Imtiaz AwanKeymasterHello,
I have test the wishlist feature in your site and it’s working perfectly fine.
You can check the video for clarification: https://jmp.sh/6cIakVV
That might be your browser or site cache issue. Kindly clear your browser as well as the site cache.
Best Regards.
October 24, 2019 at 4:45 am #152014
mitcheosParticipantHi, ive still got the lazyload issue with the checkout images not loading properly after I applied the code to the function.php file. Works fine with lazy load completely disabled but I only want to disable it for the checkout page.
Can you please have a look? Login details below.Thanks
MitchAttachments:
You must be logged in to view attached files.October 24, 2019 at 6:21 am #152035
Artem TemosKeymasterWe see that you are using some extra checkout plugin and it updates that part with AJAX. But after the AJAX request, that part contain lazy loading images again. Sorry, but we don’t have a fix for this.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register