remove_section( 'daron_service_option' ); //Modify this line as needed $wp_customize->remove_section( 'daron_portfolio_option' ); //Modify this line as needed $wp_customize->remove_section( 'daron_testimonial_option' ); //Modify this line as needed $wp_customize->remove_section( 'upgrade_daron_premium' ); //Modify this line as needed $wp_customize->remove_control( 'daron_skin_theme_color' ); //Modify this line as needed ); //Modify this line as needed $wp_customize->remove_control( 'daron_blog_column_layout' ); //Modify this line as needed // Add recent post control to child $wp_customize->add_control( new Daron_info( $wp_customize, 'blogline_cz_recent_post', array( 'label' => __('Blog HomePage Recent Post', 'blogline'), 'section' => 'daron_blog_option', 'settings' => 'daron_title', 'priority' => 3, 'active_callback' => 'daron_blog_callback', ) ) ); //blogline recent post $wp_customize->add_setting('blogline_home_recent_post', array( 'default' => esc_html__( '10', 'blogline' ), 'sanitize_callback' => 'absint' ) ); $wp_customize->add_control('blogline_home_recent_post', array( 'section' => 'daron_blog_option', 'type' => 'number', 'input_attrs' => array( 'min' => 0, 'max' => 10, 'step' => 1 ), 'priority' => 4, 'active_callback' => 'daron_blog_callback', ) ); // Add sidebar control to child $wp_customize->add_control( new Daron_info( $wp_customize, 'blogline_cz_blog_layout', array( 'label' => __('Blog HomePage Layout', 'blogline'), 'section' => 'daron_blog_option', 'settings' => 'daron_title', 'priority' => 5, 'active_callback' => 'daron_blog_callback', ) ) ); $wp_customize->add_setting( 'blogline_blog_sidebar_layout', array ( 'default' => __('fullwidth', 'blogline'), 'sanitize_callback' => 'daron_sanitize_radio' ) ); $wp_customize->add_control('blogline_blog_sidebar_layout', array( 'type' => 'radio', 'section' => 'daron_blog_option', 'priority' => 6, 'choices' => array( 'leftsidebar' => __( 'Left Sidebar', 'blogline' ), 'fullwidth' => __( 'Full width (no sidebar)', 'blogline' ), 'rightsidebar' => __( 'Right Sidebar', 'blogline' ) ), 'active_callback' => 'daron_blog_callback', ) ); //Enable Site Loader $wp_customize->add_setting( 'blogline_blog_img_crop', array( 'default' => 'daron_thumb_custum_sizes', 'sanitize_callback' => 'daron_sanitize_select', ) ); $wp_customize->add_control('blogline_blog_img_crop', array( 'type' => 'select', 'label' => __('Image Size for Blog', 'blogline'), 'section' => 'daron_general_settings', 'priority' => 9, 'choices' => array( 'daron_thumb_custum_sizes' => __( 'Custom 380 x 380 (Recommended)', 'blogline' ), 'thumbnail' => __( 'Thumbnail', 'blogline' ), 'medium' => __( 'Medium', 'blogline' ), 'full' => __( 'Full', 'blogline' ), ) ) ); } add_action( 'customize_register', 'blogline_customize_register', 11 ); ?>