removing header images from pages, removing search from off canvas menu
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 26 Oct 2016 13:35:19 +0000 (09:35 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 26 Oct 2016 13:35:19 +0000 (09:35 -0400)
functions.php
parts/off-canvas-menu.php

index 98a346a..5408df2 100644 (file)
@@ -104,21 +104,21 @@ function is_post_type($type){
 }
 /* Header for posts*/
 function glm_get_header() {
-    echo '<div';
-
-    if (has_post_thumbnail()  && (!(is_home()) ) && (!(is_single())) && (!(is_archive())) && (!(is_search()))) {
-            $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
-            echo ' style="background-image: url('.$image_data[0].');height:300px;padding:0;padding-bottom:300px;background-position:center center;background-size: 100% 100%;background-repeat:no-repeat;max-height: 300px; "';
-    } else {
-            echo ' style="background-image: url('.get_template_directory_uri().'/assets/stay.jpg);height:300px;padding:0;padding-bottom:300px;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 300px;"';
-            echo ' class="no-featured"';
-    }
-    echo '>';
-    echo '</div>';
-    echo '<div class="row">';
-    echo '<div class="small-12 columns">';
-    echo '</div>';
-    echo '</div>';
+//    echo '<div';
+//
+//    if (has_post_thumbnail()  && (!(is_home()) ) && (!(is_single())) && (!(is_archive())) && (!(is_search()))) {
+//            $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
+//            echo ' style="background-image: url('.$image_data[0].');height:300px;padding:0;padding-bottom:300px;background-position:center center;background-size: 100% 100%;background-repeat:no-repeat;max-height: 300px; "';
+//    } else {
+//            echo ' style="background-image: url('.get_template_directory_uri().'/assets/stay.jpg);height:300px;padding:0;padding-bottom:300px;background-position:center center;background-size: cover;background-repeat:no-repeat;max-height: 300px;"';
+//            echo ' class="no-featured"';
+//    }
+//    echo '>';
+//    echo '</div>';
+//    echo '<div class="row">';
+//    echo '<div class="small-12 columns">';
+//    echo '</div>';
+//    echo '</div>';
 }
 
 // // The code below is useful when you want the image to resize to
index 961d8ad..90aaaa7 100644 (file)
@@ -1,6 +1,5 @@
 <aside class="left-off-canvas-menu hide-for-large-up">
     <?php glm_theme_mobile_off_canvas(); ?>
-    <?php get_template_part('parts/search');?>
     <?php get_template_part('parts/client-info-offcanvas');?>
     <ul class="offcavas-social-list">
         <li class="facebook"><a href="http://www.facebook.com/KalamazooBeerWeek" target="_blank"></a></li>