get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; $wp_customize->get_control( 'display_header_text' )->label = __( 'Display Site Title', 'dyad-2' ); } add_action( 'customize_register', 'dyad_2_customize_register' ); /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. */ function dyad_2_customize_preview_js() { wp_enqueue_script( 'dyad_2_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20130508', true ); } add_action( 'customize_preview_init', 'dyad_2_customize_preview_js' );