'; $logo_desc .= __('header settings section.', 'benjamin'); $wp_customize->get_control( 'custom_logo' )->description = sprintf('%s',$logo_desc); $classic = array('#0c555d', '#399099', '#ff5049', '#ffffff', '#f5f5f5', '#000000'); $standard = array('#112e51', '#02bfe7','#e31c3d', '#ffffff', '#f1f1f1', '#d6d7d9'); // color scheme $wp_customize->add_setting( 'color_scheme_setting', array( 'default' => 'standard', 'sanitize_callback' => 'benjamin_color_scheme_sanitize', ) ); // removing red color scheme for now $choices = array( 'standard' => array( 'uri' => get_stylesheet_directory_uri() . '/assets/css/benjamin.min.css', 'colors' => array('#112e51', '#02bfe7','#e31c3d', '#ffffff', '#f1f1f1', '#d6d7d9') ), 'classic' => array( 'uri' => get_stylesheet_directory_uri() . '/assets/css/benjamin-classic.min.css', 'colors' => array('#0c555d', '#399099', '#ff5049', '#ffffff', '#f5f5f5', '#000000') ) ); $choices = apply_filters('benjamin_filter_color_schemes', $choices); $description = 'Benjamin comes with ' . count($choices) . ' color schemes, like color swatches.'; $wp_customize->add_control( new Benjamin_Color_Scheme_Custom_Control( $wp_customize, 'color_scheme_control', array( 'description' => $description, 'label' => __('Color Scheme', 'benjamin'), 'section' => 'title_tagline', 'settings' => 'color_scheme_setting', 'choices' => $choices ) ) ); } add_action('customize_register', 'benjamin_site_identity');