add_panel('general_setting', array( 'priority' => '2', 'capability' => 'edit_theme_options', 'theme_supports' => '', 'title' => __( 'General Setting', 'callcenter' ), 'description' => __( 'This allows to edit the header', 'callcenter' ), ) ); //Default sections to custom panel $wp_customize->get_section('title_tagline')->panel = 'general_setting'; $wp_customize->remove_section('nav'); $wp_customize->remove_section( 'colors'); $wp_customize->get_section( 'static_front_page')->panel = 'general_setting'; $wp_customize->add_section('favicon_image', array( 'title' => __('Site Icon', 'callcenter'), 'priority' => '110', 'panel' => 'general_setting', ) ); $wp_customize->add_setting( 'callcenter_favicon', array( 'default' => '', 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize,'callcenter_favicon', array( 'section' => 'favicon_image', 'label' => __('Upload Site Icon', 'callcenter'), 'description' => __('Standard Size of Site Icon is 40x40px', 'callcenter'),) ) ); } add_action( 'customize_register', 'callcenter_ticker_setting' );