-
-
Save braddalton/3fabe1de14f3cd0c813b to your computer and use it in GitHub Desktop.
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
genesis_register_sidebar( array( | |
'id' => 'new-widget', | |
'name' => __( 'New Widget', 'wpsites' ), | |
'description' => __( 'This is the front page widget area.', 'wpsites' ), | |
) ); | |
add_action( 'genesis_before_entry', 'front_page_widget', 5 ); | |
function front_page_widget() { | |
if ( is_front_page() ) | |
genesis_widget_area( 'new-widget', array( | |
'before' => '<div class="after-entry widget-area">', | |
'after' => '</div>', | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment