add_section( 'navigation', array( 'title' => __('Navigation Background Colors','feedlistly'), 'priority' => 1, 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'navigation_bg_color', array( 'default' => '#101010', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'navigation_bg_color', array( 'label' => __( 'Background Color', 'feedlistly' ), 'section' => 'navigation', 'priority' => 1, 'settings' => 'navigation_bg_color', ) ) ); } add_action( 'customize_register', 'feedlistly_customize_register' ); /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. */ function feedlistly_customize_preview_js() { wp_enqueue_script( 'feedlistly-customizer', get_stylesheet_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20151215', true ); } add_action( 'customize_preview_init', 'feedlistly_customize_preview_js' ); if(! function_exists('feedlistly_customizer_styling' ) ): function feedlistly_customizer_styling(){ ?>