From: Anthony Talarico Date: Thu, 14 Jan 2016 17:12:27 +0000 (-0500) Subject: removed breadcrumbs from search page X-Git-Tag: v1.0.0^2~47 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=fa7a34b1cd1d47cca88401e80fd25b789a77fbd8;p=WP-Themes%2Fotsego.git removed breadcrumbs from search page --- diff --git a/js/app.js b/js/app.js index 89e7771..d28a8f9 100644 --- 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 $("

", {html: $(this).html()}); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 041feaa..d361547 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -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 $("

", {html: $(this).html()}); }); diff --git a/search.php b/search.php index bc9e633..a745322 100644 --- a/search.php +++ b/search.php @@ -3,13 +3,7 @@ -
-
- -
-
+