forked from mirror/_s
is_active_sidebar() check
Check to ensure sidebar is active before displaying #secondary
This commit is contained in:
parent
409d15d1a2
commit
d01a8d319b
|
@ -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' ); ?>
|
||||||
|
|
Reference in New Issue