Last active
December 18, 2015 13:19
-
-
Save AbhishekGhosh/5789033 to your computer and use it in GitHub Desktop.
Genesis Left Header
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' => 'header-left', | |
'name' => __( 'Header Left', 'genesis' ), | |
'description' => __( 'Header left widget area', 'genesis' ), | |
) ); | |
add_action( 'genesis_header', 'wpsites_left_header_widget', 11 ); | |
function wpsites_left_header_widget() { | |
if (is_active_sidebar( 'header-left' ) ) { | |
echo '<div class="header-left">'; | |
dynamic_sidebar( 'header-left' ); | |
echo '</div><!-- end .header-left -->'; | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment