remove_section( 'automobile_hub_about_section' ); $wp_customize->remove_setting( 'automobile_hub_menu_font_size' ); $wp_customize->remove_control( 'automobile_hub_menu_font_size' ); $wp_customize->remove_setting( 'automobile_hub_mail_icon' ); $wp_customize->remove_control( 'automobile_hub_mail_icon' ); $wp_customize->remove_setting( 'automobile_hub_call_icon' ); $wp_customize->remove_control( 'automobile_hub_call_icon' ); $wp_customize->remove_setting( 'automobile_hub_slider_icon' ); $wp_customize->remove_control( 'automobile_hub_slider_icon' ); } add_action( 'customize_register', 'car_repair_remove_customize_register', 11 ); function car_repair_customize_register( $wp_customize ) { $wp_customize->add_setting('automobile_hub_address_text',array( 'default' => '', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('automobile_hub_address_text',array( 'label' => __('Add Location Text','car-repair'), 'section' => 'automobile_hub_topbar', 'type' => 'text' )); $wp_customize->selective_refresh->add_partial( 'automobile_hub_address_text', array( 'selector' => '.headerbox p', 'render_callback' => 'automobile_hub_address_text_customize_partial_automobile_hub_address_text', ) ); $wp_customize->add_setting('automobile_hub_address',array( 'default' => '', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('automobile_hub_address',array( 'label' => __('Add Location','car-repair'), 'section' => 'automobile_hub_topbar', 'type' => 'text' )); //TP Color Option $wp_customize->add_section('car_repair_color_option',array( 'title' => __('TP Color Option', 'car-repair'), 'priority' => 1, 'panel' => 'car_repair_panel_id' ) ); $wp_customize->add_setting( 'car_repair_tp_color_option', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'car_repair_tp_color_option', array( 'description' => __('It will change the complete theme color in one click.', 'car-repair'), 'section' => 'car_repair_color_option', 'settings' => 'car_repair_tp_color_option', ))); $wp_customize->add_setting( 'car_repair_tp_color_option_link', array( 'default' => '#000', 'sanitize_callback' => 'sanitize_hex_color' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'car_repair_tp_color_option_link', array( 'description' => __('It will change the complete theme hover link color in one click.', 'car-repair'), 'section' => 'car_repair_color_option', 'settings' => 'car_repair_tp_color_option_link', ))); //TP Color Option $wp_customize->add_section('automobile_hub_color_option',array( 'title' => __('TP Color Option', 'car-repair'), 'priority' => 1, 'panel' => 'automobile_hub_panel_id' ) ); $wp_customize->add_setting( 'automobile_hub_tp_color_option', array( 'default' => '', 'sanitize_callback' => 'sanitize_hex_color' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'automobile_hub_tp_color_option', array( 'description' => __('It will change the complete theme color in one click.', 'car-repair'), 'section' => 'automobile_hub_color_option', 'settings' => 'automobile_hub_tp_color_option', ))); $wp_customize->add_setting( 'automobile_hub_tp_color_option_link', array( 'default' => '', 'sanitize_callback' => 'sanitize_hex_color' )); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'automobile_hub_tp_color_option_link', array( 'description' => __('It will change the complete theme hover link color in one click.', 'car-repair'), 'section' => 'automobile_hub_color_option', 'settings' => 'automobile_hub_tp_color_option_link', ))); } add_action( 'customize_register', 'car_repair_customize_register' ); if ( ! defined( 'AUTOMOBILE_HUB_PRO_THEME_NAME' ) ) { define( 'AUTOMOBILE_HUB_PRO_THEME_NAME', esc_html__( 'Car Repair Pro Theme', 'car-repair' )); } if ( ! defined( 'AUTOMOBILE_HUB_PRO_THEME_URL' ) ) { define( 'AUTOMOBILE_HUB_PRO_THEME_URL', esc_url('https://www.themespride.com/themes/car-repair-wordpress-theme/')); }