From bc867a344e4a7b186644d75439153edc3f2db3ca Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Mon, 28 Oct 2019 20:37:09 -0400 Subject: [PATCH] Pledge List: Style search results --- themes/wporg-5ftf/css/components/_pledge-list.scss | 3 ++- themes/wporg-5ftf/search.php | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/themes/wporg-5ftf/css/components/_pledge-list.scss b/themes/wporg-5ftf/css/components/_pledge-list.scss index 2587772..d0fa287 100644 --- a/themes/wporg-5ftf/css/components/_pledge-list.scss +++ b/themes/wporg-5ftf/css/components/_pledge-list.scss @@ -1,4 +1,5 @@ -body.archive.post-type-archive-5ftf_pledge { +body.archive.post-type-archive-5ftf_pledge, +body.search.search-results { // Expand archive content area to full-width of header. .site-content .site-main { diff --git a/themes/wporg-5ftf/search.php b/themes/wporg-5ftf/search.php index bdbf34f..632067c 100644 --- a/themes/wporg-5ftf/search.php +++ b/themes/wporg-5ftf/search.php @@ -19,12 +19,15 @@ while ( have_posts() ) : the_post(); - get_template_part( 'template-parts/content', 'page' ); + get_template_part( 'template-parts/content', get_post_type() ); + endwhile; the_posts_pagination(); - else : + ?> + +