Skip to content

Instantly share code, notes, and snippets.

@braddalton
Created March 27, 2013 15:20
Show Gist options
  • Save braddalton/5255031 to your computer and use it in GitHub Desktop.
Save braddalton/5255031 to your computer and use it in GitHub Desktop.
/** Widget Before Primary Sidebar */
genesis_register_sidebar( array(
'id' => 'before-primary-sidebar',
'name' => 'Before Primary Sidebar Content',
'description' => 'Displays content before the primary sidebar.',
) );
add_action( 'genesis_before_sidebar_alt_widget_area', 'wpsites_widget_before_primary_sidebar' );
function wpsites_widget_before_primary_sidebar() {
echo '<div class="before-primary-sidebar">';
dynamic_sidebar( 'before-primary-sidebar' );
echo '</div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment