Skip to content

Commit 5195455

Browse files
authored
Merge pull request #523 from Codeinwp/fix/758
added wildcard background lazy selector for wp_block_cover #758
2 parents a67ad13 + 09fcfc8 commit 5195455

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/lazyload_replacer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public static function get_background_lazyload_selectors() {
124124
$default_watchers = [
125125
'.elementor-section[data-settings*="background_background"]',
126126
'.elementor-section > .elementor-background-overlay',
127-
'.wp-block-cover[style*="background-image"]',
127+
'[class*="wp-block-cover"][style*="background-image"]',
128128
];
129129

130130
$saved_watchers = self::instance()->settings->get_watchers();

0 commit comments

Comments
 (0)