Skip to content

Instantly share code, notes, and snippets.

@rubel306
Created May 15, 2018 10:16
Show Gist options
  • Save rubel306/e800da8833c52e7e9c707c6119abaca5 to your computer and use it in GitHub Desktop.
Save rubel306/e800da8833c52e7e9c707c6119abaca5 to your computer and use it in GitHub Desktop.
function industry_wp_widgets_init() {
register_sidebar( array(
'name' => esc_html__( 'Footer widgets', 'industry-wp' ),
'id' => 'footer',
'description' => esc_html__( 'Add footer widgets here.', 'industry-wp' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>',
) );
}
add_action( 'widgets_init', 'industry_wp_widgets_init' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment