get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_textcolor', array( 'label' => __( 'Header Text Color', 'bluesip' ), 'description' => __( 'Applied to the header.', 'bluesip' ), 'section' => 'colors', ) ) ); // Add an additional description to the header image section. $wp_customize->get_section( 'header_image' )->description = __( 'Applied to the header.', 'bluesip' ); } add_action( 'customize_register', 'bluesip_customize_register', 11 ); function bluesip_customize_control_js() { wp_enqueue_script( 'customize-control',get_template_directory_uri() . '/inc/assets/options-script.js', array( 'customize-controls', 'iris', 'underscore', 'wp-util' ), '20141216', true ); } add_action( 'customize_controls_enqueue_scripts', 'bluesip_customize_control_js' ); /** * Enqueues bluesip header title color. * * @since Bluesip 1.3.6 * * @see wp_add_inline_style() */ function bluesip_color_scheme_css() { wp_enqueue_style( 'custom-text-color-style', get_template_directory_uri() . '/css/header.css' ); $color = get_theme_mod( 'header_textcolor' ); //E.g. #FF0000 $custom_css = " .site-title a { color: #{$color} !important; } .site-description { color: #{$color} !important; }"; wp_add_inline_style( 'custom-text-color-style', $custom_css ); } add_action( 'wp_enqueue_scripts', 'bluesip_color_scheme_css' ); ?>