From fa7a34b1cd1d47cca88401e80fd25b789a77fbd8 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 14 Jan 2016 12:12:27 -0500 Subject: [PATCH] removed breadcrumbs from search page --- js/app.js | 3 ++- js/custom/pageSetup.js | 3 ++- search.php | 8 +------- 3 files changed, 5 insertions(+), 9 deletions(-) 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 @@ -
-
- -
-
+
-- 2.17.1