get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; $wp_customize->get_section('header_image')->title = __( 'Header Settings', 'one-pageily' ); $wp_customize->get_control( 'header_textcolor' )->section = 'header_image'; $wp_customize->add_setting( 'theme_color', array( 'default' => '#35c6a2', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'theme_color', array( 'label' => __( 'Theme Color', 'one-pageily' ), 'description' => __( 'Applied to general elements.', 'one-pageily' ), 'section' => 'colors', 'priority' => 10, 'settings' => 'theme_color', ) ) ); $wp_customize->add_setting( 'header_right_button_text', array( 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field', 'capability' => 'edit_theme_options', ) ); $wp_customize->add_control( 'header_right_button_text', array( 'label' => __( "Header Button Text", 'one-pageily' ), 'section' => 'header_image', 'type' => 'text', 'priority' => 1, ) ); $wp_customize->add_setting( 'header_right_button_link', array( 'type' => 'theme_mod', 'sanitize_callback' => 'esc_url_raw', 'capability' => 'edit_theme_options', ) ); $wp_customize->add_control( 'header_right_button_link', array( 'label' => __( "Header Button Link", 'one-pageily' ), 'section' => 'header_image', 'type' => 'text', 'priority' => 1, ) ); $wp_customize->add_setting( 'header_right_button_bg', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_right_button_bg', array( 'label' => __( 'Button Background Color', 'one-pageily' ), 'section' => 'header_image', 'priority' => 1, 'settings' => 'header_right_button_bg', ) ) ); $wp_customize->add_setting( 'header_right_button_text_color', array( 'default' => '#29b3b0', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_right_button_text_color', array( 'label' => __( 'Button Text Color', 'one-pageily' ), 'section' => 'header_image', 'priority' => 1, 'settings' => 'header_right_button_text_color', ) ) ); $wp_customize->add_setting( 'top_header_background_color', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'top_header_background_color', array( 'label' => __( 'Header Background Color', 'one-pageily' ), 'description' => __( 'Applied to header background.', 'one-pageily' ), 'section' => 'header_image', 'priority' => 10, 'settings' => 'top_header_background_color', ) ) ); $wp_customize->add_setting( 'navigation_frontpage_link_color', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'navigation_frontpage_link_color', array( 'label' => __( 'Navigation Text Color', 'one-pageily' ), 'section' => 'colors', 'priority' => 1, 'settings' => 'navigation_frontpage_link_color', ) ) ); } add_action( 'customize_register', 'one_pageily_customize_register' ); if(! function_exists('one_pageily_user_customization_customizer' ) ): function one_pageily_user_customization_customizer(){ ?>