add_section( 'subscription_settings', array( 'title' => esc_html__( 'Email Subscription', 'storefront-starter' ), 'priority' => 199, 'capability' => 'edit_theme_options', 'panel' => 'theme_options', 'description' => __( 'Add email subscription plugin shortcode.', 'storefront-starter' ), ) ); /** Footer Copyright */ $wp_customize->add_setting( 'subscription_shortcode', array( 'default' => best_shop_default_settings( 'subscription_shortcode' ), 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'subscription_shortcode', array( 'label' => esc_html__( 'Subscription Plugin Shortcode', 'storefront-starter' ), 'section' => 'subscription_settings', 'type' => 'text', ) ); //preloader $wp_customize->add_section( 'preloader_settings', array( 'title' => esc_html__( 'Preloader', 'storefront-starter' ), 'priority' => 200, 'capability' => 'edit_theme_options', 'panel' => 'theme_options', ) ); $wp_customize->add_setting( 'preloader_enabled', array( 'default' => best_shop_default_settings( 'preloader_enabled' ), 'sanitize_callback' => 'best_shop_sanitize_checkbox', 'transport' => 'refresh' ) ); $wp_customize->add_control( 'preloader_enabled', array( 'label' => esc_html__( 'Enable Preloader', 'storefront-starter' ), 'section' => 'preloader_settings', 'type' => 'checkbox', ) ); } endif; add_action( 'customize_register', 'storefront_starter_customize_register' ); /* * Add default header image */ function storefront_starter_header_style() { add_theme_support( 'custom-header', apply_filters( 'storefront_starter_custom_header_args', array( 'default-text-color' => '#000000', 'width' => 1920, 'height' => 760, 'flex-height' => true, 'video' => true, 'wp-head-callback' => 'storefront_starter_header_style', ) ) ); add_theme_support( 'automatic-feed-links' ); } add_action( 'after_setup_theme', 'storefront_starter_header_style' );