Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add homepage-only sidebar widget area, see #23.
- Loading branch information
1 parent
d1a77cd
commit 1e238bf
Showing
3 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
/** | ||
* The Sidebar containing the homepage widget area. | ||
* | ||
* If no active widgets in this sidebar, it will be hidden completely. | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Twelve | ||
* @since Twenty Twelve 1.0 | ||
*/ | ||
?> | ||
|
||
<?php if ( is_active_sidebar( 'sidebar-home' ) ) : ?> | ||
<div id="secondary" class="widget-area" role="complementary"> | ||
<?php dynamic_sidebar( 'sidebar-home' ); ?> | ||
</div><!-- #secondary .widget-area --> | ||
<?php endif; ?> |
Good eye! Fixed.