Toolonomy Logo
Last Updated on: September 18, 2020

Disable Jetpack Lazyload for Specific Pages [PHP Snippet]

If you want to disable Jetpack lazy load feature for certain selected pages of your WordPress website then you can easily achieve that using this code snippet.

/* Advanced Scripts Method to Add This Snippet */
/* 
Title: Disable Jetpack Lazyload for Specific Pages
Type: PHP: Custom Code
Location: Plugins Loaded
Priority: 10
*/

add_filter( 'lazyload_is_enabled', 'sw_jetpack_lazyload_exclude', 15 ); 
function sw_jetpack_lazyload_exclude() { if ( is_page( array( '7957', '7570' ) ) ) { return false; } else { return true; } }

Explore our Facebook Community

Consider joining our Toolonomy Facebook Community if you want to involve in the group discussion with like-minded people about Business Development Tools.
Join Now
Made with ❤ for Digital Entrepreneurs
Copyright © 2018 - 2022 SyncWin | All Rights Reserved.
Top crossmenu