is_active_sidebar() check

Check to ensure sidebar is active before displaying #secondary
This commit is contained in:
sixhours 2014-06-26 11:06:33 -04:00
parent 409d15d1a2
commit d01a8d319b
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@
* *
* @package _s * @package _s
*/ */
if ( ! is_active_sidebar( 'sidebar-1' ) ) :
return;
?> ?>
<div id="secondary" class="widget-area" role="complementary"> <div id="secondary" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'sidebar-1' ); ?> <?php dynamic_sidebar( 'sidebar-1' ); ?>