removing shareThis from the topics and replies pages
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 20 Jan 2017 20:31:24 +0000 (15:31 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 20 Jan 2017 20:31:24 +0000 (15:31 -0500)
parts/blog-text-single.php

index 0f4e133..0a5d39d 100644 (file)
@@ -6,8 +6,10 @@
         <div class="featured-image-wrap"><?php the_post_thumbnail("large"); ?></div>
         <?php } ?>
         <?php endif; ?>
-        <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
-        <span class="share-single"><span class="st_sharethis" st_title="'. get_the_title().'" st_url="'. get_the_permalink() .'"></span></span>
+        <?php if (!get_post_type( $post ) === "topic"){ ?>
+            <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
+            <span class="share-single"><span class="st_sharethis" st_title="'. get_the_title().'" st_url="'. get_the_permalink() .'"></span></span>
+        <?php } ?>
     </header>
     <?php the_content(); ?>
 </article>
\ No newline at end of file