Browse Source

#115: Apostrophe 2: Fix duplicate featured images w/Jetpack Lazy Loading (#6357)

* #115: Apostrophe 2: Fix duplicate featured images w/Jetpack Lazy Loading

* #115: Apostrophe 2: Fix Jetpack Lazy Loading on archive pages
Bob Matyas 2 years ago
parent
commit
8aea9807ec
1 changed files with 6 additions and 0 deletions
  1. 6 0
      apostrophe-2/style.css

+ 6 - 0
apostrophe-2/style.css

@@ -1473,6 +1473,11 @@ figure.entry-thumbnail {
 	margin: 0 0 1.5em;
 }
 
+/* Hide duplicate image thumbnail with Jetpack Lazy Loading */
+.entry-thumbnail > img.jetpack-lazy-image ~ img.attachment-post-thumbnail {
+	display: none;
+}
+
 /* Entry/post headers */
 .entry-format::before {
 	background: #e6e6e6;
@@ -2179,6 +2184,7 @@ object {
 	margin: 0;
 }
 
+
 /*--------------------------------------------------------------
 12.1 Captions
 --------------------------------------------------------------*/