From 77e467303e0f92be83282fc4e01a6d201b438a59 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 14 May 2019 11:47:06 -0400 Subject: [PATCH] Tracking codes added, featured images size reduced to 200px --- css/app.css | 2 +- functions.php | 2 +- index.php | 3 +- parts/footer-tracking-codes.php | 195 ++++++++++++++++++++++++++++++++ scss/_main.scss | 2 +- sections/interior-page.php | 8 +- 6 files changed, 200 insertions(+), 12 deletions(-) create mode 100644 parts/footer-tracking-codes.php diff --git a/css/app.css b/css/app.css index eb36a8c..3cbb0c2 100644 --- a/css/app.css +++ b/css/app.css @@ -6859,7 +6859,7 @@ body .cr__load-more-container.cr__clearfix { .page-front { margin-top: 65px; } .blog-category, .blog-archive, .blog-single, .blog-home, .page-inside { - margin-top: 155px; } } + margin-top: 65px; } } #county-map { text-align: center; } diff --git a/functions.php b/functions.php index aea8f47..536ce6c 100644 --- a/functions.php +++ b/functions.php @@ -103,7 +103,7 @@ function glm_get_header() { if (has_post_thumbnail() && (!(is_home()) ) && (!(is_single())) && (!(is_archive())) && (!(is_search()))) { $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "interior-featured"); - echo ' style="background-image: url('.$image_data[0].');height:0;padding:0;padding-bottom:20%;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 420px;min-height: 150px; "'; + echo ' style="background-image: url('.$image_data[0].');height:0;padding:0;padding-bottom:200px;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 200px;min-height: 200px; "'; } else if ( is_post_type( 'post' ) ) { echo ' style="background-image: url('.get_template_directory_uri().'/assets/default-header.png);height:200px;padding:0;padding-bottom:200px;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 200px;"'; } else { diff --git a/index.php b/index.php index 48cff60..f543390 100644 --- a/index.php +++ b/index.php @@ -47,12 +47,11 @@ - - + \ No newline at end of file diff --git a/parts/footer-tracking-codes.php b/parts/footer-tracking-codes.php new file mode 100644 index 0000000..93cc7f8 --- /dev/null +++ b/parts/footer-tracking-codes.php @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scss/_main.scss b/scss/_main.scss index 92afa5a..987f71f 100644 --- a/scss/_main.scss +++ b/scss/_main.scss @@ -176,7 +176,7 @@ body .cr__load-more-container.cr__clearfix{ .blog-single, .blog-home, .page-inside{ - margin-top: 155px; + margin-top: 65px; } } // Start County Template Styles diff --git a/sections/interior-page.php b/sections/interior-page.php index b96748e..6040b03 100644 --- a/sections/interior-page.php +++ b/sections/interior-page.php @@ -167,10 +167,4 @@ $("#county-content-expand-section").toggleClass("expanded"); }); } ); - - - \ No newline at end of file + \ No newline at end of file -- 2.17.1