removed link to separate blog-text-single partial file for now, detecting if is_singl...
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 2 Dec 2016 14:35:24 +0000 (09:35 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 2 Dec 2016 14:35:24 +0000 (09:35 -0500)
parts/blog-text.php
sections/blog-single.php

index 57f1a5f..a9b669f 100644 (file)
@@ -1,6 +1,12 @@
 <article id="<?php the_ID()?>" <?php post_class()?>>
     <header class="entry-header">
-        <h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h3>
+        <h3 class="entry-title">
+           <?php if( !is_single() ){ ?> 
+               <a href="<?php the_permalink(); ?>"><?php the_title();?></a> 
+            <?php } else { 
+                the_title();
+            } ?>
+        </h3>
         <?php if ( has_post_thumbnail() ):?>
                  <?php if (get_post_type( $post ) != "ai1ec_event") { ?>
         <div class="featured-image-wrap"><?php the_post_thumbnail("large"); ?></div>
index d69ed64..a7197c4 100644 (file)
@@ -6,7 +6,7 @@
                 <div class="small-11 small-centered columns">
                     <div class="row">
                         <div class="small-12 columns">
-                            <?php get_template_part('parts/blog-text-single'); ?>
+                            <?php get_template_part('parts/blog-text'); ?>
                             <?php if ( comments_open() || get_comments_number() ) :
                             comments_template();
                             endif; ?>