editing the search results page
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 21 Apr 2017 15:37:18 +0000 (11:37 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 21 Apr 2017 15:37:18 +0000 (11:37 -0400)
header images were showing up on the search results page, removed that. removed the footer
tag from the search results page.

css/app.css
functions.php
scss/_search.scss

index e67631a..42b054c 100644 (file)
@@ -7078,7 +7078,7 @@ input[type="submit"].blogbutton {
 .search-results #blog-posts-over .search-result-container .search_result_context {
   margin: 0;
   padding: 0;
-  line-height: 1.3; }
+  line-height: 1; }
 .search-results #blog-posts-over .search-result-container article p {
   margin: 0;
   padding: 0; }
index 31eeef3..9194bec 100644 (file)
@@ -75,7 +75,7 @@ function glm_site_scripts()
 function glm_get_header() {
     echo '<div';
 
-    if (has_post_thumbnail()) {
+    if (has_post_thumbnail()  && !is_search()) {
             $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
             echo ' style="background-image: url('.$image_data[0].');height:250px;padding:0;background-position:top center;background-repeat:no-repeat;max-height: 250px;overflow: hidden; "';
     } else {
index 2284e98..9448a84 100644 (file)
@@ -58,7 +58,7 @@
             .search_result_context{
                 margin: 0;
                 padding: 0;
-                line-height: 1.3;
+                line-height: 1;
             }
             article{
                 p{