removed breadcrumbs from search page
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 14 Jan 2016 17:12:27 +0000 (12:12 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 14 Jan 2016 17:12:27 +0000 (12:12 -0500)
js/app.js
js/custom/pageSetup.js
search.php

index 89e7771..d28a8f9 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -111,12 +111,13 @@ $(document).ready(function () {
         }
     });
 
-    // remove link from posts with less than 16 words
+    // remove link from posts with less than 225 characters
     for (var i = 0; i < $('div[class*="excerpt"]').length; i++){
 //        var words = $(".excerpt" + i).text().split(' ');
         var words = $(".excerpt" + i).text();
         if(words.length < 225){
            
+            // disable link if excerpt is < 225 characters
             $(".excerpt" + i).parent().find("a").replaceWith(function(){
                return $("<h2 />", {html: $(this).html()});
             });
index 041feaa..d361547 100644 (file)
@@ -102,12 +102,13 @@ $(document).ready(function () {
         }
     });
 
-    // remove link from posts with less than 16 words
+    // remove link from posts with less than 225 characters
     for (var i = 0; i < $('div[class*="excerpt"]').length; i++){
 //        var words = $(".excerpt" + i).text().split(' ');
         var words = $(".excerpt" + i).text();
         if(words.length < 225){
            
+            // disable link if excerpt is < 225 characters
             $(".excerpt" + i).parent().find("a").replaceWith(function(){
                return $("<h2 />", {html: $(this).html()});
             });
index bc9e633..a745322 100644 (file)
@@ -3,13 +3,7 @@
         <?php echo glm_get_header(); ?>
     </div>
     <?php get_template_part('parts/off-canvas_main');?>
-<div id="bread-row">
-    <div class="row">
-        <?php
-        get_template_part('parts/bread-crumbs');
-        ?>
-    </div>
-</div>
+
 <main class="search-results">
     <div id="search-content-wrapper">
         <div class="row">