Skip to content

Instantly share code, notes, and snippets.

@webtrainingwheels
Last active April 21, 2016 07:07
Show Gist options
  • Save webtrainingwheels/c89280072834c2a5b77e79a62300a6c5 to your computer and use it in GitHub Desktop.
Save webtrainingwheels/c89280072834c2a5b77e79a62300a6c5 to your computer and use it in GitHub Desktop.
register_sidebar( array(
'name' => 'Footer Widget',
'id' => 'footer-widget',
'before_widget' => '<div class="footer-widget">',
'after_widget' => '</div>'
) );
add_action( 'twentysixteen_credits', 'wtw_custom_footer_widget' );
function wtw_custom_footer_widget() {
if ( is_active_sidebar( 'footer-widget' ) ) :
dynamic_sidebar( 'footer-widget' );
endif;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment