Skip to content

Instantly share code, notes, and snippets.

@kristarella
Last active April 5, 2018 03:35
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 kristarella/70ad8aca56d05ebf7117c4fb348224c9 to your computer and use it in GitHub Desktop.
Save kristarella/70ad8aca56d05ebf7117c4fb348224c9 to your computer and use it in GitHub Desktop.
function sequential_child_widgets_init() {
register_sidebar( array(
'name' => esc_html__( 'Sidebar', 'sequential' ),
'id' => 'sidebar-1',
'description' => '',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h1>',
) );
register_sidebar( array(
'name' => esc_html__( 'Footer', 'sequential' ),
'id' => 'sidebar-2',
'description' => '',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h1>',
) );
}
remove_action( 'widgets_init', 'sequential_widgets_init', 98 );
add_action( 'widgets_init', 'sequential_child_widgets_init', 99 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment