Advertisement
Guest User

Disable Lazy Loading in Kalium

a guest
Aug 27th, 2015
681
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. /*
  2.  * Disable Lazy Loading
  3.  * Add this code in the end of kalium/functions.php or kalium-child/functions.php file.
  4.  */
  5. add_action( 'lab_image_placeholder_lazyload', '__return_false' );
  6. add_action( 'lab_image_placeholder_class', 'lab_image_placeholder_class_filter' );
  7.  
  8. function lab_image_placeholder_class_filter( $classes ) {
  9.     $classes[] = 'loading-finished';
  10.     return $classes;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement