add_section( 'appdetail-blog-category', array( 'priority' => 160, 'capability' => 'edit_theme_options', 'title' => __( 'blog Section', 'appdetail' ), 'description' => __( 'Select the required category for the blog Recommended image for blog is 70X71', 'appdetail' ), 'panel'=>'appdetail_panel' ) ); /* blog cat selection */ $wp_customize->add_setting( 'appdetail_theme_options[appdetail-blog-cat]', array( 'capability' => 'edit_theme_options', 'default' => $appdetail_defaults['appdetail-blog-cat'], 'sanitize_callback' => 'absint' ) ); $wp_customize->add_control( new appdetail_Customize_Category_Dropdown_Control( $wp_customize, 'appdetail_theme_options[appdetail-blog-cat]', array( 'label' => __( 'Select Category', 'appdetail' ), 'section' => 'appdetail-blog-category', 'settings' => 'appdetail_theme_options[appdetail-blog-cat]', 'type' => 'category_dropdown', 'priority' => 10 ) ) ); /* blog Title Text */ $wp_customize->add_setting( 'appdetail_theme_options[appdetail-blog-title]', array( 'capability' => 'edit_theme_options', 'default' => $appdetail_defaults['appdetail-blog-title'], 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control('appdetail_theme_options[appdetail-blog-title]', array( 'label' => __( 'Title Text', 'appdetail' ), 'section' => 'appdetail-blog-category', 'settings' => 'appdetail_theme_options[appdetail-blog-title]', 'type' => 'text', 'priority' => 10 ) ); /* blog Decsription Text */ $wp_customize->add_setting( 'appdetail_theme_options[appdetail-blog-description]', array( 'capability' => 'edit_theme_options', 'default' => $appdetail_defaults['appdetail-blog-description'], 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control('appdetail_theme_options[appdetail-blog-description]', array( 'label' => __( 'Decsription Text', 'appdetail' ), 'section' => 'appdetail-blog-category', 'settings' => 'appdetail_theme_options[appdetail-blog-description]', 'type' => 'text', 'priority' => 10 ) );