Bläddra i källkod

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

Bob Matyas 2 år sedan
förälder
incheckning
c1411708de
1 ändrade filer med 1 tillägg och 1 borttagningar
  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 } ?>