Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

is_active_sidebar() check

Check to ensure sidebar is active before displaying #secondary
  • Loading branch information...
commit d01a8d319b084dba0fe1acdb5ede275958881056 1 parent 409d15d
@sixhours sixhours authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  sidebar.php
View
3  sidebar.php
@@ -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' ); ?>
Please sign in to comment.
Something went wrong with that request. Please try again.