add_setting( 'bc_nav_logo' , array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'bc_nav_logo', array( 'label' => __( 'Logo', 'broadcast-lite' ), 'description' => __( 'The ideal image dimensions here are 268x70 (or 536x140 for double resolution).', 'broadcast-lite'), 'section' => 'bc_nav_settings', 'settings' => 'bc_nav_logo', ) ) ); // END SETTING // SETTING - bc_nav_logo_size $wp_customize->add_setting( 'bc_nav_logo_size' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'bc_nav_logo_size', array( 'label' => __( 'Logo Width', 'broadcast-lite' ), 'description' => __( 'Adjust the maximum width of the logo. Defaults to 288.', 'broadcast-lite' ), 'type' => 'range', // Change 'number' to 'range' for slider 'input_attrs' => array( 'min' => 80, // Minimum value 'max' => 288, // Maximum value 'step' => 1, // Step size ), 'section' => 'bc_nav_settings', 'settings' => 'bc_nav_logo_size', ) ); // END SETTING // SETTING - bc_colour_theme $wp_customize->add_setting( 'bc_nav_bg_color' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bc_nav_bg_color', array( 'label' => __( 'Navigation Background Color', 'broadcast-lite' ), 'description' => __( 'Choose a background color for the navigation bar.', 'broadcast-lite'), 'section' => 'bc_nav_settings', 'settings' => 'bc_nav_bg_color', ) ) ); // END SETTING // SETTING - bc_colour_theme $wp_customize->add_setting( 'bc_nav_link_color' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bc_nav_link_color', array( 'label' => __( 'Navigation Link Color', 'broadcast-lite' ), 'description' => __( 'Choose a link color for the navigation area.', 'broadcast-lite'), 'section' => 'bc_nav_settings', 'settings' => 'bc_nav_link_color', ) ) ); // END SETTING // SETTING - bc_colour_theme $wp_customize->add_setting( 'bc_nav_link_hover_color' , array( 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', 'default' => '' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'bc_nav_link_hover_color', array( 'label' => __( 'Navigation Link Hover Color', 'broadcast-lite' ), 'description' => __( 'Choose a hover color for the navigation link underlines.', 'broadcast-lite'), 'section' => 'bc_nav_settings', 'settings' => 'bc_nav_link_hover_color', ) ) ); // END SETTING } add_action( 'customize_register', 'broadcast_customize_nav_settings' );