add_section( 'blogwhite_layout_options', array( 'title' => esc_html__( 'Layout Options', 'blogwhite' ), 'priority' => 100, 'panel'=>'blogwhite_theme_options', ) ); // Add sidebar $wp_customize->add_setting( 'blogwhite_blog_sidebar_position', array( 'default' => 'right-sidebar', 'sanitize_callback' => 'blogwhite_sanitize_select', 'type' => 'theme_mod', 'transport' => 'refresh', ) ); $wp_customize->add_control('blogwhite_blog_sidebar_position',array( 'label' => esc_html__( 'Sidebar Position', 'blogwhite'), 'section' => 'blogwhite_layout_options', 'type' => 'select', 'capability' => 'edit_theme_options', 'choices' => array( 'right-sidebar' => esc_html__( 'Right Sidebar', 'blogwhite'), 'no-sidebar' => esc_html__( 'No Sidebar', 'blogwhite'), 'left-sidebar' => esc_html__( 'Left Sidebar', 'blogwhite' ), ), )); // Post Sidebar Position $wp_customize->add_setting( 'blogwhite_post_sidebar_position', array ( 'default' => 'right-sidebar', 'sanitize_callback' => 'blogwhite_sanitize_select', 'type' => 'theme_mod', 'transport' => 'refresh', ) ); $wp_customize->add_control('blogwhite_post_sidebar_position',array( 'label' => esc_html__( 'Post Sidebar Position', 'blogwhite' ), 'section' => 'blogwhite_layout_options', 'type' => 'select', 'capability' => 'edit_theme_options', 'choices' => array( 'right-sidebar' => esc_html__( 'Right Sidebar', 'blogwhite' ), 'left-sidebar' => esc_html__( 'Left Sidebar', 'blogwhite' ), 'no-sidebar' => esc_html__( 'No Sidebar', 'blogwhite' ), ), )); // Page Sidebar Position. $wp_customize->add_setting('blogwhite_page_sidebar_position', array( 'default' => 'right-sidebar', 'sanitize_callback' => 'blogwhite_sanitize_select', 'type' => 'theme_mod', 'transport' => 'refresh', )); $wp_customize->add_control('blogwhite_page_sidebar_position',array( 'label' => esc_html__( 'Page Sidebar Position', 'blogwhite' ), 'section' => 'blogwhite_layout_options', 'type' => 'select', 'capability' => 'edit_theme_options', 'choices' => array( 'right-sidebar'=> esc_html__( 'Right Sidebar', 'blogwhite' ), 'left-sidebar' => esc_html__( 'Left Sidebar', 'blogwhite' ), 'no-sidebar' => esc_html__( 'No Sidebar', 'blogwhite' ), ), )); // archive Sidebar Position. $wp_customize->add_setting( 'blogwhite_archive_sidebar_position', array( 'default' => 'right-sidebar', 'sanitize_callback' => 'blogwhite_sanitize_select', 'type' => 'theme_mod', 'transport' => 'refresh', ) ); $wp_customize->add_control('blogwhite_archive_sidebar_position',array( 'label' => esc_html__( 'Archive Sidebar Position', 'blogwhite'), 'section' => 'blogwhite_layout_options', 'type' => 'select', 'capability' => 'edit_theme_options', 'choices' => array( 'right-sidebar' => esc_html__( 'Right Sidebar', 'blogwhite'), 'left-sidebar' => esc_html__( 'Left Sidebar', 'blogwhite' ), 'no-sidebar' => esc_html__( 'No Sidebar', 'blogwhite'), ), ));