Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braddalton/5417272 to your computer and use it in GitHub Desktop.
Save braddalton/5417272 to your computer and use it in GitHub Desktop.
genesis_register_sidebar( array(
'id' => 'before-sidebar',
'name' => __( 'Before SideBar Widget', 'Agency' ),
'description' => __( 'This is the before sidebar widget area.', 'Agency' ),
) );
add_action( 'genesis_before_sidebar_widget_area’', 'wpsites_before_sidebar_widget', 9 );
function wpsites_before_sidebar_widget() {
if ( is_home() ) {
echo '<div class="before-sidebar">';
dynamic_sidebar( 'before-sidebar' );
echo '</div><!-- end .before-sidebar -->';
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment