Last active
April 5, 2018 03:35
-
-
Save kristarella/70ad8aca56d05ebf7117c4fb348224c9 to your computer and use it in GitHub Desktop.
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
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