remove_section('header_image'); $wp_customize->remove_control('display_header_text'); // Display Search Icon $wp_customize->add_setting( 'bisonno_display_search_icon' , array( 'sanitize_callback' => 'wp_kses_post' ) ); $wp_customize->add_control( 'bisonno_display_search_icon', array( 'label' => __( 'Display Search Icon', 'bisonno' ), 'description' => esc_html__( '', 'bisonno' ), 'type' => 'checkbox', 'section' => 'title_tagline', 'settings' => 'bisonno_display_search_icon', 'priority' => '20' ) ); // Footer Copyright $wp_customize->add_setting( 'bisonno_footer_copyright' , array( 'sanitize_callback' => 'wp_kses_post' ) ); $wp_customize->add_control ( 'bisonno_footer_copyright', array( 'label' => __( 'Footer Copyright', 'bisonno' ), 'description' => esc_html__( 'Customize the footer copyright text. (HTML is allowed)', 'bisonno' ), 'type' => 'textarea', 'section' => 'title_tagline', 'settings' => 'bisonno_footer_copyright', ) ); // Add brand color setting and control $wp_customize->add_setting( 'bisonno_brand_color', array( 'default' => '#6c5ce7', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bisonno_brand_color', array( 'label' => __( 'Brand Color', 'bisonno' ), 'section' => 'colors', 'settings' => 'bisonno_brand_color', ) ) ); // Set homepage recent posts as a normal 3 column grid instead of 2 posts $wp_customize->add_setting( 'bisonno_homepage_3_column_recent_posts' , array( 'sanitize_callback' => 'wp_kses_post' ) ); $wp_customize->add_control( 'bisonno_homepage_3_column_recent_posts', array( 'label' => __( 'Homepage 3 Column Grid for Recent Posts', 'bisonno' ), 'description' => esc_html__( '', 'bisonno' ), 'type' => 'checkbox', 'section' => 'title_tagline', 'settings' => 'bisonno_homepage_3_column_recent_posts', 'priority' => '20' ) ); } add_action( 'customize_register', 'bisonno_customize_register' ); // Add customizer CSS code to header function bisonno_output_customizer_css() { ?>