get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->add_setting('color_scheme', array( 'default' => '#e3a79f', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize,'color_scheme',array( 'label' => __('Color Scheme','belleza'), 'description' => __('Select color from here.','belleza'), 'section' => 'colors', 'settings' => 'color_scheme' )) ); $wp_customize->add_setting('headerbg-color', array( 'default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize,'headerbg-color',array( 'description' => __('Select background color for header.','belleza'), 'section' => 'colors', 'settings' => 'headerbg-color' )) ); $wp_customize->add_setting('topbarbg-color', array( 'default' => '#333333', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize,'topbarbg-color',array( 'description' => __('Select background color for topbar.','belleza'), 'section' => 'colors', 'settings' => 'topbarbg-color' )) ); $wp_customize->add_setting('footbg-color', array( 'default' => '#0e0e0e', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize,'footbg-color',array( 'description' => __('Select background color for footer.','belleza'), 'section' => 'colors', 'settings' => 'footbg-color' )) ); // Slider Section Start $wp_customize->add_section( 'slider_section', array( 'title' => __('Slider Settings', 'belleza'), 'priority' => null, 'description' => __('Recommended image size (1420x567). Slider will work only when you select the static front page.','belleza'), ) ); $wp_customize->add_setting('page-setting7',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint' )); $wp_customize->add_control('page-setting7',array( 'type' => 'dropdown-pages', 'label' => __('Select page for slide one:','belleza'), 'section' => 'slider_section' )); $wp_customize->add_setting('page-setting8',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint' )); $wp_customize->add_control('page-setting8',array( 'type' => 'dropdown-pages', 'label' => __('Select page for slide two:','belleza'), 'section' => 'slider_section' )); $wp_customize->add_setting('page-setting9',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint' )); $wp_customize->add_control('page-setting9',array( 'type' => 'dropdown-pages', 'label' => __('Select page for slide three:','belleza'), 'section' => 'slider_section' )); $wp_customize->add_setting('slide_text',array( 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control( 'slide_text', array( 'section' => 'slider_section', 'label' => __('Add text for slider button.','belleza'), 'type' => 'text' )); $wp_customize->add_setting('hide_slider',array( 'default' => true, 'sanitize_callback' => 'belleza_sanitize_checkbox', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'hide_slider', array( 'settings' => 'hide_slider', 'section' => 'slider_section', 'label' => __('Check this to hide slider.','belleza'), 'type' => 'checkbox' )); // Slider Section End // Contact Section $wp_customize->add_section( 'contact_section', array( 'title' => __('Topbar', 'belleza'), 'priority' => null, 'description' => __('Add your contact info here.','belleza'), ) ); $wp_customize->add_setting('email-txt',array( 'sanitize_callback' => 'sanitize_email' )); $wp_customize->add_control('email-txt',array( 'type' => 'text', 'label' => __('Add email address here.','belleza'), 'section' => 'contact_section' )); $wp_customize->add_setting('phone-txt',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('phone-txt',array( 'type' => 'text', 'label' => __('Add phone number here.','belleza'), 'section' => 'contact_section' )); } add_action( 'customize_register', 'belleza_customize_register' ); function belleza_css(){ ?>