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; } }
0 Shares
SyncWin Logo
SyncWin is a dedicated place to explore the Content, Discussions, & Useful Details around topics like Business, Technology, and Lifestyle to help you learn and grow in your life.
About Us
Made with ❤ for WinSyncers
Copyright © 2018 - 2024 by SyncWin | All Rights Reserved.
crossmenuarrow-right
0 Shares
Copy link