浏览代码

#5989: Dara: Exclude featured images from Jetpack Lazy Loading (#6364)

Bob Matyas 2 年之前
父节点
当前提交
c1411708de
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dara/components/post/content-featured.php

+ 1 - 1
dara/components/post/content-featured.php

@@ -18,7 +18,7 @@ if ( empty( $featured ) )
 				<div class="hero-content-wrapper">
 					<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
 						<?php if ( dara_has_post_thumbnail() ) { ?>
-							<?php the_post_thumbnail( 'dara-hero-thumbnail' ); ?>
+							<?php the_post_thumbnail( 'dara-hero-thumbnail', array( 'class' => 'skip-lazy' )  ); ?>
 						<?php } else { ?>
 							<div class="thumbnail-placeholder"></div>
 						<?php } ?>