"; } add_action('wp_head','add_custom_fonts'); function skin1_customizer( $wp_customize) { // Remove unused controls: $wp_customize -> remove_control("search_header_text_color"); $wp_customize -> remove_section("home_page"); $wp_customize -> remove_control("search_header"); $wp_customize -> remove_control("search_header_text"); $wp_customize -> remove_section("toc_info"); // Secondary accent color $wp_customize->add_setting( 'secondary_color', array( 'default' => "#1A578E", 'sanitize_callback' => 'sanitize_hex_color' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'secondary_color', array( 'label' => __( 'Secondary Accent Color' , 'easydita_knowledge_portal'), 'section' => 'custom_colors', 'settings' => 'secondary_color', 'priority' => 20 ) ) ); // Background image (for header and footer) $wp_customize->add_section( 'header_bg', array( 'title' => __('Background Image', 'easydita_knowledge_portal'), 'description' => __('Set the background image or color for the search bar header and home page footer.', 'easydita_knowledge_portal'), 'priority' => 59, ) ); $wp_customize->add_setting( 'bg_image', array( 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new WP_Customize_Upload_Control( $wp_customize, 'bg_image', array( 'label' => __('Background Image', 'easydita_knowledge_portal'), 'section' => 'header_bg', 'settings' => 'bg_image', ) ) ); } add_action( 'customize_register', 'skin1_customizer' ); function add_custom_css() { ?>