From: Anthony Talarico Date: Tue, 4 Oct 2016 18:14:05 +0000 (-0400) Subject: decreasing the character count for the petoskey area front page blog output to conser... X-Git-Tag: v1.0.3^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=4153ddefdddbfa917e6f9a83e2a7cb2baf6eaf5d;p=WP-Plugins%2Fhubspot-blog.git decreasing the character count for the petoskey area front page blog output to conserve space beneath the image map on the left --- 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