mirror of
https://ghproxy.net/https://github.com/AlxMedia/typecore.git
synced 2025-08-26 15:54:05 +08:00
Fixed featured flexslider not loading images, disable native lazy load
This commit is contained in:
parent
6eb13c0631
commit
8002e03140
2 changed files with 8 additions and 1 deletions
|
@ -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');
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue