[ad_1]
Hi there,
I was able to disable lazy loading for images using the class method by adding “skip-lazy” to the thumbnail and above the fold images.
I added this code with ambition to disable lazy loading for posts with the print query:
if (isset($_GET['print']) && ($_GET['print'] == 1)) {
add_filter('get_image_tag_class','et_add_image_class');
}
function et_add_image_class ($class){
$class .= ' skip-lazy';
return $class;
}But the class gets overrided by W3 Total Cache.
Please how can I add the classes to all images and not have W3TC override them? Thanks in advance.
The page I need help with: [log in to see the link]
