fixing the blog single pages to use the content instead of excerpt
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 6 Feb 2018 21:06:55 +0000 (16:06 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 6 Feb 2018 21:06:55 +0000 (16:06 -0500)
blog single pages were using excerpt instead of content

parts/blog-text.php
parts/header-meta.php
style.css

index a05fd81..edab84c 100644 (file)
@@ -9,5 +9,10 @@
                                                         <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
                                                         <?php get_template_part('parts/share-this'); ?>
                                                     </header>
-                                                    <?php the_advanced_excerpt('length=250&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,div,h1,h2,h3,h4,h5,h6'); ?>
+               
+                                                    <?php if( is_home() || is_archive() || is_category() ){
+                                                        the_advanced_excerpt('length=250&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,div,h1,h2,h3,h4,h5,h6');
+                                                    } elseif ( is_single() ){
+                                                        the_content();
+                                                    } ?> 
                                                 </article>
\ No newline at end of file
index 78b35fa..6e32107 100644 (file)
@@ -5,7 +5,7 @@
 <!--    <link href="https://fonts.googleapis.com/css?family=Lato:300,400,700" rel="stylesheet">-->
     <link href="https://fonts.googleapis.com/css?family=Roboto+Slab:400,700" rel="stylesheet">
      <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700" rel="stylesheet">
-    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.0.12">
+    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.0.13">
     <link rel="shortcut icon" href="<?php echo bloginfo('template_url'); ?>/favicon.ico">
     <?php wp_head(); ?>
 </head>
\ No newline at end of file
index f076b3a..04ea243 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: BaragaCounty
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for BaragaCounty
-Version: 1.0.12
+Version: 1.0.13
 */