SHARE
TWEET

Disable Lazy Loading in Kalium

a guest Aug 27th, 2015 151 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Want to get better at PHP?
Learn to code PHP in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top