Created
January 28, 2015 08:47
-
-
Save jbma/2d2fd264f0c3299b89b8 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