'name' ) ) ) { ?> add_section( 'hero_home_promos', array( 'title' => __( 'Home Promos', 'hero' ), 'description' => sprintf( __( 'Please add a tag to the posts you want to display in the callout areas. The option of assigning a post to each of the three callout areas will then appear here.', 'hero' ), esc_url( 'https://en.support.wordpress.com/posts/tags/' ) ), 'priority' => 121, ) ); //Tagline Settings $wp_customize->add_setting( 'hero_tagline_text', array( 'default' => '', ) ); $wp_customize->add_control( new Hero_Customize_Textarea_Control( $wp_customize, 'hero_tagline_text', array( 'label' => __( 'Tagline Text', 'hero' ), 'section' => 'hero_home_promos', 'settings' => 'hero_tagline_text', ) ) ); $wp_customize->add_setting( 'hero_tagline_link', array( 'default' => '0', ) ); $wp_customize->add_control( 'hero_tagline_link', array( 'label' => __( 'Tagline Link', 'hero' ), 'section' => 'hero_home_promos', 'type' => 'dropdown-pages', ) ); //Promo Settings $wp_customize->add_setting( 'hero_promos_left', array( 'default' => '', ) ); $wp_customize->add_control( new Hero_Customize_Select_Control( $wp_customize, 'hero_promos_left', array( 'label' => __( 'Promo One', 'hero' ), 'section' => 'hero_home_promos', 'settings' => 'hero_promos_left', ) ) ); $wp_customize->add_setting( 'hero_promos_mid', array( 'default' => '', ) ); $wp_customize->add_control( new Hero_Customize_Select_Control( $wp_customize, 'hero_promos_mid', array( 'label' => __( 'Promo Two', 'hero' ), 'section' => 'hero_home_promos', 'settings' => 'hero_promos_mid', ) ) ); $wp_customize->add_setting( 'hero_promos_right', array( 'default' => '', ) ); $wp_customize->add_control( new Hero_Customize_Select_Control( $wp_customize, 'hero_promos_right', array( 'label' => __( 'Promo Three', 'hero' ), 'section' => 'hero_home_promos', 'settings' => 'hero_promos_right', ) ) ); $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; } add_action( 'customize_register', 'hero_customize' ); /** * Enqueue Javascript postMessage handlers for the Customizer. * * Binds JavaScript handlers to make the Customizer preview * reload changes asynchronously. */ function hero_customize_preview_js() { wp_enqueue_script( 'hero-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20140721', true ); } add_action( 'customize_preview_init', 'hero_customize_preview_js' );