add_section('custom_banner_section', array( 'title' => __('Banner Settings', 'arcs'), 'priority' => 30, )); // Background Image $wp_customize->add_setting('banner_background_image', array( 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'banner_background_image', array( 'label' => __('Background Image', 'arcs'), 'section' => 'custom_banner_section', 'settings' => 'banner_background_image', ))); // Background Color $wp_customize->add_setting('banner_background_color', array( 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'banner_background_color', array( 'label' => __('Background Color', 'arcs'), 'section' => 'custom_banner_section', 'settings' => 'banner_background_color', ))); // Background Gradient $wp_customize->add_setting('banner_background_gradient', array( 'default' => '', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control('banner_background_gradient', array( 'label' => __('Background Gradient', 'arcs'), 'section' => 'custom_banner_section', 'type' => 'text', )); // Background Position $wp_customize->add_setting('banner_background_position', array( 'default' => 'center center', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control('banner_background_position', array( 'label' => __('Background Position', 'arcs'), 'section' => 'custom_banner_section', 'type' => 'text', )); // Background Size $wp_customize->add_setting('banner_background_size', array( 'default' => 'cover', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control('banner_background_size', array( 'label' => __('Background Size', 'arcs'), 'section' => 'custom_banner_section', 'type' => 'text', )); // Background Repeat $wp_customize->add_setting('banner_background_repeat', array( 'default' => 'no-repeat', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control('banner_background_repeat', array( 'label' => __('Background Repeat', 'arcs'), 'section' => 'custom_banner_section', 'type' => 'text', )); // Background Attachment $wp_customize->add_setting('banner_background_attachment', array( 'default' => 'scroll', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control('banner_background_attachment', array( 'label' => __('Background Attachment', 'arcs'), 'section' => 'custom_banner_section', 'type' => 'text', )); // Dynamic Heading $wp_customize->add_setting('banner_dynamic_heading', array( 'default' => 'Your Default Heading', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control('banner_dynamic_heading', array( 'label' => __('Dynamic Heading', 'arcs'), 'section' => 'custom_banner_section', 'type' => 'text', )); // Dynamic Text $wp_customize->add_setting('banner_dynamic_text', array( 'default' => 'Your Default Text', 'sanitize_callback' => 'wp_kses_post', )); $wp_customize->add_control('banner_dynamic_text', array( 'label' => __('Dynamic Text', 'arcs'), 'section' => 'custom_banner_section', 'type' => 'textarea', )); } add_action('customize_register', 'custom_banner_customizer_section'); ?>