From 409d15d1a2e65f6d927ca393e599c42b274b57c8 Mon Sep 17 00:00:00 2001 From: sixhours Date: Thu, 26 Jun 2014 10:55:04 -0400 Subject: [PATCH 1/3] Remove default widgets from sidebar --- sidebar.php | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/sidebar.php b/sidebar.php index 07d632a3..5d4766d1 100644 --- a/sidebar.php +++ b/sidebar.php @@ -6,27 +6,5 @@ */ ?> From d01a8d319b084dba0fe1acdb5ede275958881056 Mon Sep 17 00:00:00 2001 From: sixhours Date: Thu, 26 Jun 2014 11:06:33 -0400 Subject: [PATCH 2/3] is_active_sidebar() check Check to ensure sidebar is active before displaying #secondary --- sidebar.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sidebar.php b/sidebar.php index 5d4766d1..6c1aa9e9 100644 --- a/sidebar.php +++ b/sidebar.php @@ -4,6 +4,9 @@ * * @package _s */ + +if ( ! is_active_sidebar( 'sidebar-1' ) ) : + return; ?>