Created
January 16, 2015 08:54
-
-
Save jbma/99303313ad4a32efe6fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'wp', '__deactivate_rocket_lazyload_if_home' ); | |
function __deactivate_rocket_lazyload_if_home() | |
{ | |
if( is_home() || is_front_page() ) { | |
add_filter( 'do_rocket_lazyload', '__return_false' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment