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; } }

Become a Toolonomy Community Member for Free!

Consider joining our Official Community Group if you want to get access to exclusive insider content and information about Exclusive Digital Tools and Technologies. Also, you will be able to get involved in interesting group discussions with like-minded people that are interested in similar topics as you.
Become a Member
Toolonomy Logo
Made with ❤ by & for Digital Tool Enthusiasts
Copyright © 2018 - 2024 by SyncWin | All Rights Reserved.

🍪 Cookie Settings
Top crossmenu
Copy link