From c9bd4df27538cc6b6e80073effca4a9f917f5318 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 16 Feb 2016 09:19:25 -0500 Subject: [PATCH] added addThis box to single to replace simple share --- css/app.css | 7 ++++--- functions.php | 6 +++++- scss/_blog.scss | 7 +++++-- single.php | 12 ++++++++++++ 4 files changed, 26 insertions(+), 6 deletions(-) diff --git a/css/app.css b/css/app.css index 80ee007..9d8f7c9 100644 --- a/css/app.css +++ b/css/app.css @@ -6981,8 +6981,6 @@ input[type="submit"].blogbutton { font-size: 22px; } #blog-posts-over article .entry-header h2 { font-size: 22px; } - #blog-posts-over article #addthis_wrapper { - margin-top: -25px; } #blog-posts-over article a.read-more { color: #2c296d; font-weight: bold; @@ -7011,7 +7009,7 @@ input[type="submit"].blogbutton { font-size: 12px; } #blog-posts-over > div { - margin: 25px 0; } + margin: 40px 0; } #blog-side-info { background: #2C296D; } @@ -7108,6 +7106,9 @@ article { .meta { font-size: 14px; } +.addthis_counter.addthis_pill_style { + float: right; } + #sidebar { padding-top: 25px; background: #f2f9fc; } diff --git a/functions.php b/functions.php index e476072..703c5de 100644 --- a/functions.php +++ b/functions.php @@ -88,7 +88,11 @@ function glm_site_scripts() } - +function is_post_type($type){ + global $wp_query; + if($type == get_post_type($wp_query->post->ID)) return true; + return false; +} /* Header for posts*/ function glm_get_header() { echo ' div { - margin: 25px 0; + margin: 40px 0; } #blog-side-info { background: #2C296D; @@ -225,4 +225,7 @@ article { } .meta{ font-size: 14px; +} +.addthis_counter.addthis_pill_style{ + float: right; } \ No newline at end of file diff --git a/single.php b/single.php index 047f1a1..caf13e0 100644 --- a/single.php +++ b/single.php @@ -60,6 +60,18 @@ + +
+ +
+ +
+ + + + +
+