get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; $wp_customize->add_section( 'highwind_theme_options', array( 'title' => __( 'Theme Options', 'highwind' ), 'priority' => 35, ) ); $wp_customize->add_setting( 'highwind_logo' ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'highwind_logo', array( 'label' => 'Upload a logo', 'section' => 'highwind_theme_options', ) ) ); } add_action( 'customize_register', 'highwind_customize_register' ); /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. */ function highwind_customize_preview_js() { wp_enqueue_script( 'highwind_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20130508', true ); } add_action( 'customize_preview_init', 'highwind_customize_preview_js' );