add_section('footer_theme_section', array( 'title' => __('Footer', 'aw-plus-awesome-blog'), 'priority' => 12 )); /*=============settings=================*/ $wp_customize->add_setting('footer_color_settings', array( 'default' => '#999', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh' )); $wp_customize->add_setting('footer_text_color_settings', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh' )); $wp_customize->add_setting('footer_links_color_settings', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh' )); /*=============control=================*/ $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'background_footer_color_control', array( 'label' => __('Background color', 'aw-plus-awesome-blog'), 'section' => 'footer_theme_section', 'settings' => 'footer_color_settings' ))); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'background_text_color_footer_control', array( 'label' => __('Text color', 'aw-plus-awesome-blog'), 'section' => 'footer_theme_section', 'settings' => 'footer_text_color_settings' ))); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'background_links_color_footer_control', array( 'label' => __('Links color', 'aw-plus-awesome-blog'), 'section' => 'footer_theme_section', 'settings' => 'footer_links_color_settings' ))); }