Sidebar
if ( ! function_exists( 'custom_sidebars' ) ) { // Register Sidebars function custom_sidebars() { $args = array( 'id' => 'sidebar', 'class' => 'sidebar', 'name' => __( 'Sidebar', 'text_domain' ), ); register_sidebar( $args ); } add_action( 'widgets_init', 'custom_sidebars' ); }