Skip to content

Commit

Permalink
Merge pull request #529 from Automattic/Remove-Default-Widgets
Browse files Browse the repository at this point in the history
Remove default widgets from sidebar.

Closes #528.
  • Loading branch information
obenland committed Jun 26, 2014
2 parents 4dad296 + d2beca6 commit fc95a34
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,10 @@
*
* @package _s
*/

if ( ! is_active_sidebar( 'sidebar-1' ) )
return;
?>
<div id="secondary" class="widget-area" role="complementary">
<?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>

<aside id="search" class="widget widget_search">
<?php get_search_form(); ?>
</aside>

<aside id="archives" class="widget">
<h1 class="widget-title"><?php _e( 'Archives', '_s' ); ?></h1>
<ul>
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
</ul>
</aside>

<aside id="meta" class="widget">
<h1 class="widget-title"><?php _e( 'Meta', '_s' ); ?></h1>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<?php wp_meta(); ?>
</ul>
</aside>

<?php endif; // end sidebar widget area ?>
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</div><!-- #secondary -->

0 comments on commit fc95a34

Please sign in to comment.