add_section( 'about_section' , array( 'title' => __('About settings', 'spicebox'), 'panel' => 'section_settings', 'priority' => 3, ) ); // Enable service more btn $wp_customize->add_setting( 'home_about_section_enabled' , array( 'default' => 'on') ); $wp_customize->add_control( 'home_about_section_enabled' , array( 'label' => __( 'Enable About on homepage', 'spicebox' ), 'section' => 'about_section', 'type' => 'radio', 'choices' => array( 'on'=>__('ON', 'spicebox'), 'off'=>__('OFF', 'spicebox') ) )); //About section content if ( class_exists( 'Innofit_Page_Editor' ) ) { $about_image = SPICEB_PLUGIN_URL.'inc/innofit/images/about/about.jpg'; $default = __('
About
Welcome to Innofit

We have the right solutions

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totame rems aperiam, eaque ipsa quae ab illo inventore veritatis quasi architecto beatae vitaes dicta sunt explicabo. Nemo enim ipsam voluptatem.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore.

','spicebox'); $wp_customize->add_setting( 'about_section_content', array( 'default' => $default, 'sanitize_callback' => 'wp_kses_post', 'transport' => $selective_refresh, ) ); $wp_customize->add_control( new Innofit_Page_Editor( $wp_customize, 'about_section_content', array( 'label' => esc_html__( 'About content', 'spicebox' ), 'section' => 'about_section', 'priority' => 10, 'needsync' => true, ) ) ); } //About image $wp_customize->add_setting( 'innofit_about_section_background',array('default' => '')); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'innofit_about_section_background', array( 'label' => __('Image','spasalon'), 'settings' =>'innofit_about_section_background', 'section' => 'about_section', 'type' => 'upload', ) ) ); /** * Add selective refresh for Front page about section controls. */ $wp_customize->selective_refresh->add_partial( 'about_section_content', array( 'selector' => '.about .entry-subtitle', 'settings' => 'about_section_content', ) ); ?>