is_active_sidebar() check
Check to ensure sidebar is active before displaying #secondary
This commit is contained in:
parent
409d15d1a2
commit
d01a8d319b
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,9 @@
|
|||
*
|
||||
* @package _s
|
||||
*/
|
||||
|
||||
if ( ! is_active_sidebar( 'sidebar-1' ) ) :
|
||||
return;
|
||||
?>
|
||||
<div id="secondary" class="widget-area" role="complementary">
|
||||
<?php dynamic_sidebar( 'sidebar-1' ); ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue