Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.