Fixed featured flexslider not loading images, disable native lazy load

This commit is contained in:
AlxMedia 2022-03-09 16:49:06 +01:00
parent 6eb13c0631
commit 8002e03140
2 changed files with 8 additions and 1 deletions

View file

@ -826,4 +826,10 @@ add_action( 'wp_print_footer_scripts', 'typecore_skip_link_focus_fix' );
/* Disable wp lazy load, fix for flexslider
/* ------------------------------------ */
add_filter('wp_lazy_loading_enabled', '__return_false');
add_filter('wp_lazy_loading_enabled', '__return_false');
function typecore_disable_lazy_load_featured_images($attr, $attachment = null) {
$attr['loading'] = 'eager';
return $attr;
}
add_filter('wp_get_attachment_image_attributes', 'typecore_disable_lazy_load_featured_images');

View file

@ -96,6 +96,7 @@ Right sidebar images
= 1.3.7 - 2022-01-24 =
* Updated to Kirki 4.0
* Fixed featured flexslider not loading images, disable native lazy load
= 1.3.6 - 2021-08-25 =
* Added missing theme tags for wordpress.org