Created
June 16, 2015 23:14
-
-
Save benweiser/5cdbb8051147d1bf216e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| bw_page_1_widget(); | |
| function bw_page_1_widget() { | |
| genesis_register_sidebar( array( | |
| 'id' => 'page-1-widget', | |
| 'name' => __( 'Blog Archive Widget', 'themename' ), | |
| 'description' => __( 'This is a widget area that only appears on the first page of the blog', 'themename' ), | |
| ) ); | |
| } | |
| function bw_paged_widget(){ | |
| genesis_widget_area( 'page-1-widget', array( | |
| 'before' => '<div class="page-1-widget widget-area">', | |
| 'after' => '</div>', | |
| ) ); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment