Toolonomy Logo
Last Updated on: September 18, 2020

Disable Jetpack Lazyload for Specific Pages [PHP Snippet]

0 Shares

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

Become a Toolonomy Community Member for Free!

Consider joining our Official Community Group if you want to get access to the exclusive insider content and information around the Exclusive Business Development Tools. Also, you will be able to get involved in interesting group discussions with like-minded people that are interested in similar topics as you.
Free Membership
Made with ❤ for Digital Entrepreneurs
Copyright © 2018 - 2022 SyncWin | All Rights Reserved.
Top crossmenu
0 Shares
Copy link
Powered by Social Snap