get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; } add_action( 'customize_register', 'basiss_customize_register' ); // This theme allows users to set a custom background. add_theme_support( 'custom-background', array( // Let WordPress know what our default background color is. 'default-color' => 'f2f3f4', ) ); /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. * * @since basiss 1.2 */ function basiss_customize_preview_js() { wp_enqueue_script( 'basiss_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20120827', true ); } add_action( 'customize_preview_init', 'basiss_customize_preview_js' );