From 4153ddefdddbfa917e6f9a83e2a7cb2baf6eaf5d Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 4 Oct 2016 14:14:05 -0400 Subject: [PATCH] decreasing the character count for the petoskey area front page blog output to conserve space beneath the image map on the left --- views/frontPage.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/views/frontPage.php b/views/frontPage.php index 71724a8..aaaaa94 100644 --- a/views/frontPage.php +++ b/views/frontPage.php @@ -20,17 +20,15 @@ echo '
' var blog = jQuery('.hubspot-blog-content'); var image_link = jQuery(".image-link"); - var image = jQuery(".hubspot-featured-image"); var blog_characters = blog.text().length; var title = jQuery(".hubspot-title"); - image.css("margin-bottom", "20px").css("background-size", "contain").css("width", "500px").css("height","350px"); - image_link.css("display", "block"); + image_link.css("display", "block").css("margin-bottom","15px"); blog.find('img').remove(); title.find("h1").css("margin-bottom", "15px").css("font-size", "25px"); - if(blog_characters > 400){ - blog.text(blog.text().substring(0,400) + '...'); + if(blog_characters > 195){ + blog.text(blog.text().substring(0,195) + '...'); } \ No newline at end of file -- 2.17.1