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', 'foodie-blog' ), 'description' => __( 'Applied to header background.', 'foodie-blog' ), 'section' => 'header_image', 'priority' => 10, 'settings' => 'top_header_background_color', ) ) ); $wp_customize->add_setting( 'general_theme_color', array( 'default' => '#d0a670', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'general_theme_color', array( 'label' => __( 'General Theme Color', 'foodie-blog' ), 'section' => 'colors', 'priority' => 10, 'settings' => 'general_theme_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 Link Color', 'foodie-blog' ), 'section' => 'colors', 'priority' => 1, 'settings' => 'navigation_frontpage_link_color', ) ) ); $wp_customize->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', 'foodie-blog' ); $wp_customize->get_control( 'header_textcolor' )->section = 'header_image'; } add_action( 'customize_register', 'foodie_blog_customize_register' ); if(! function_exists('foodie_blog_user_customization_customizer' ) ): function foodie_blog_user_customization_customizer(){ ?>