add_panel( 'theme_option_panel', array( 'title' => __( 'Theme Options', 'boutique-shop' ), 'priority' => 30, 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'boutique_shop_site_title_size', array( 'default' => 30, // Default font size in pixels 'sanitize_callback' => 'absint', // Sanitize the input as a positive integer ) ); // Add control for site title size $wp_customize->add_control( 'boutique_shop_site_title_size', array( 'type' => 'number', 'section' => 'title_tagline', // You can change this section to your preferred section 'label' => __( 'Site Title Font Size (px)', 'boutique-shop' ), 'input_attrs' => array( 'min' => 10, 'max' => 100, 'step' => 1, ), ) ); // Single Post Setting Title $wp_customize->add_section('section_single_post_setting', array( 'title' => __('Single Post Setting', 'boutique-shop'), 'panel' => 'theme_option_panel' ) ); //Author Setting control $wp_customize->add_setting( 'theme_options[boutique_shop_post_author_setting]', array( 'default' => $default['boutique_shop_post_author_setting'], 'sanitize_callback' => 'boutique_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_post_author_setting]', array( 'label' => __( 'Show Author', 'boutique-shop' ), 'section' => 'section_single_post_setting', 'type' => 'checkbox', ) ); //Date Setting control $wp_customize->add_setting( 'theme_options[boutique_shop_post_date_setting]', array( 'default' => $default['boutique_shop_post_date_setting'], 'sanitize_callback' => 'boutique_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_post_date_setting]', array( 'label' => __( 'Show Date', 'boutique-shop' ), 'section' => 'section_single_post_setting', 'type' => 'checkbox', ) ); //Categories Setting control $wp_customize->add_setting( 'theme_options[boutique_shop_post_categories_setting]', array( 'default' => $default['boutique_shop_post_categories_setting'], 'sanitize_callback' => 'boutique_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_post_categories_setting]', array( 'label' => __( 'Show Categories', 'boutique-shop' ), 'section' => 'section_single_post_setting', 'type' => 'checkbox', ) ); //Comments Setting control $wp_customize->add_setting( 'theme_options[boutique_shop_post_comment_setting]', array( 'default' => $default['boutique_shop_post_comment_setting'], 'sanitize_callback' => 'boutique_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_post_comment_setting]', array( 'label' => __( 'Show Comments', 'boutique-shop' ), 'section' => 'section_single_post_setting', 'type' => 'checkbox', ) ); //Post Pagination Setting control $wp_customize->add_setting( 'theme_options[boutique_shop_single_page_pagination_setting]', array( 'default' => $default['boutique_shop_single_page_pagination_setting'], 'sanitize_callback' => 'boutique_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_single_page_pagination_setting]', array( 'label' => __( 'Show Post Pagination', 'boutique-shop' ), 'section' => 'section_single_post_setting', 'type' => 'checkbox', ) ); //Post Content Setting control $wp_customize->add_setting( 'theme_options[boutique_shop_single_page_content_setting]', array( 'default' => $default['boutique_shop_single_page_content_setting'], 'sanitize_callback' => 'boutique_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_single_page_content_setting]', array( 'label' => __( 'Show Post Content', 'boutique-shop' ), 'section' => 'section_single_post_setting', 'type' => 'checkbox', ) ); //Tags Content Setting control $wp_customize->add_setting( 'theme_options[boutique_shop_single_tags_setting]', array( 'default' => $default['boutique_shop_single_tags_setting'], 'sanitize_callback' => 'boutique_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_single_tags_setting]', array( 'label' => __( 'Show Tags', 'boutique-shop' ), 'section' => 'section_single_post_setting', 'type' => 'checkbox', ) ); //Post Setting $wp_customize->add_section('section_post_setting', array( 'title' => __('Post Setting', 'boutique-shop'), 'panel' => 'theme_option_panel' ) ); //Title Setting control $wp_customize->add_setting( 'theme_options[boutique_shop_post_title_setting]', array( 'default' => $default['boutique_shop_post_title_setting'], 'sanitize_callback' => 'boutique_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_post_title_setting]', array( 'label' => __( 'Show Title', 'boutique-shop' ), 'section' => 'section_post_setting', 'type' => 'checkbox', ) ); //meta Setting control $wp_customize->add_setting( 'theme_options[boutique_shop_post_meta_setting]', array( 'default' => $default['boutique_shop_post_meta_setting'], 'sanitize_callback' => 'boutique_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_post_meta_setting]', array( 'label' => __( 'Show Meta', 'boutique-shop' ), 'section' => 'section_post_setting', 'type' => 'checkbox', ) ); //Content Setting control $wp_customize->add_setting( 'theme_options[boutique_shop_post_content_setting]', array( 'default' => $default['boutique_shop_post_content_setting'], 'sanitize_callback' => 'boutique_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_post_content_setting]', array( 'label' => __( 'Show Content', 'boutique-shop' ), 'section' => 'section_post_setting', 'type' => 'checkbox', ) ); //Button Setting control $wp_customize->add_setting( 'theme_options[boutique_shop_post_button_setting]', array( 'default' => $default['boutique_shop_post_button_setting'], 'sanitize_callback' => 'boutique_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_post_button_setting]', array( 'label' => __( 'Show Button', 'boutique-shop' ), 'section' => 'section_post_setting', 'type' => 'checkbox', ) ); $wp_customize->add_setting('boutique_shop_single_post_align',array( 'default' => 'left-align', 'sanitize_callback' => 'boutique_shop_sanitize_choices' )); $wp_customize->add_control('boutique_shop_single_post_align',array( 'type' => 'select', 'label' => __('Archive Post Alignment','boutique-shop'), 'section' => 'section_post_setting', 'choices' => array( 'left-align' => __('Left Alignment','boutique-shop'), 'right-align' => __('Right Alignment','boutique-shop'), 'center-align' => __('Center Alignment','boutique-shop'), ), ) ); $wp_customize->add_setting('boutique_shop_post_meta_order', array( 'default' => array('featured-image','heading', 'author', 'content','button'), 'sanitize_callback' => 'boutique_shop_sanitize_sortable', )); $wp_customize->add_control(new Boutique_Shop_Control_Sortable($wp_customize, 'boutique_shop_post_meta_order', array( 'label' => esc_html__('Post Meta Ordering', 'boutique-shop'), 'description' => __('Drag & drop post items to rearrange the ordering ( this control will not function by post format )', 'boutique-shop') , 'section' => 'section_post_setting', 'choices' => array( 'featured-image' => __('featured-image', 'boutique-shop') , 'heading' => __('heading', 'boutique-shop') , 'author' => __('author', 'boutique-shop') , 'content' => __('content', 'boutique-shop') , 'button' => __('button', 'boutique-shop') , ) , ))); // Page Title $wp_customize->add_section('section_page_title', array( 'title' => __('Page Title', 'boutique-shop'), 'panel' => 'theme_option_panel' ) ); // Show / Hide Page Title $wp_customize->add_setting( 'theme_options[boutique_shop_show_page_title]', array( 'default' => $default['boutique_shop_show_page_title'], 'sanitize_callback' => 'boutique_shop_sanitize_select', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_show_page_title]', array( 'label' => esc_html__( 'Display Page Title', 'boutique-shop' ), 'section' => 'section_page_title', 'type' => 'select', 'choices' => array( 'page-title-enable' => 'Yes', 'page-title-disable' => 'No', ), ) ); // Sidebar Layout $wp_customize->add_section('section_sidebar_layout', array( 'title' => __('Sidebar Layout', 'boutique-shop'), 'panel' => 'theme_option_panel' )); $wp_customize->add_setting('boutique_shop_post_layout_setting', array( 'default' => 'right-sidebar', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control('boutique_shop_post_layout_setting', array( 'label' => __('Post Column Settings', 'boutique-shop'), 'section' => 'section_sidebar_layout', 'settings' => 'boutique_shop_post_layout_setting', 'type' => 'select', 'choices' => array( 'one-column' => __('One Column', 'boutique-shop'), 'right-sidebar' => __('Right Sidebar', 'boutique-shop'), 'left-sidebar' => __('Left Sidebar', 'boutique-shop'), 'three-column' => __('Three Columns', 'boutique-shop'), 'four-column' => __('Four Columns', 'boutique-shop'), ), )); $wp_customize->add_setting('boutique_shop_archive_pagination_alignment',array( 'default' => 'left-align', 'sanitize_callback' => 'boutique_shop_sanitize_pagination_alignment' )); $wp_customize->add_control('boutique_shop_archive_pagination_alignment',array( 'type' => 'select', 'label' => __('Pagination Alignment','boutique-shop'), 'section' => 'section_sidebar_layout', 'choices' => array( 'right-align' => __('Right Alignment','boutique-shop'), 'center-align' => __('Center Alignment','boutique-shop'), 'left-align' => __('Left Alignment','boutique-shop'), ), ) ); // Excerpt Length $wp_customize->add_section('section_boutique_shop_excerpt_length', array( 'title' => __('Excerpt Length', 'boutique-shop'), 'panel' => 'theme_option_panel' ) ); $wp_customize->add_setting( 'theme_options[boutique_shop_excerpt_length]', array( 'default' => $default['boutique_shop_excerpt_length'], 'sanitize_callback' => 'boutique_shop_sanitize_number_range', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_excerpt_length]', array( 'label' => esc_html__( 'Excerpt Length', 'boutique-shop' ), 'section' => 'section_boutique_shop_excerpt_length', 'type' => 'number', 'input_attrs' => array( 'min' => 1, 'max' => 200, 'style' => 'width: 80px;' ), ) ); // Typography Setting Section starts $wp_customize->add_section('boutique_shop_typography_settings', array( 'title' => __('Typography Setting', 'boutique-shop'), 'panel' => 'theme_option_panel' ) ); // Array of fonts to choose from $font_choices = array( '' => __('Select', 'boutique-shop'), 'Arial' => 'Arial, sans-serif', 'Verdana' => 'Verdana, sans-serif', 'Helvetica' => 'Helvetica, sans-serif', 'Times New Roman'=> '"Times New Roman", serif', 'Georgia' => 'Georgia, serif', 'Courier New' => '"Courier New", monospace', 'Trebuchet MS' => '"Trebuchet MS", sans-serif', 'Tahoma' => 'Tahoma, sans-serif', 'Palatino' => '"Palatino Linotype", serif', 'Garamond' => 'Garamond, serif', 'Impact' => 'Impact, sans-serif', 'Comic Sans MS' => '"Comic Sans MS", cursive, sans-serif', 'Lucida Sans' => '"Lucida Sans Unicode", sans-serif', 'Arial Black' => '"Arial Black", sans-serif', 'Gill Sans' => '"Gill Sans", sans-serif', 'Segoe UI' => '"Segoe UI", sans-serif', 'Open Sans' => '"Open Sans", sans-serif', 'Roboto' => 'Roboto, sans-serif', 'Lato' => 'Lato, sans-serif', 'Montserrat' => 'Montserrat, sans-serif', 'Libre Baskerville' => 'Libre Baskerville', ); // Heading Font Setting $wp_customize->add_setting('boutique_shop_heading_font_family', array( 'default' => '', 'sanitize_callback' => 'boutique_shop_sanitize_choicess', )); $wp_customize->add_control('boutique_shop_heading_font_family', array( 'type' => 'select', 'choices' => $font_choices, 'label' => __('Select Font for Heading', 'boutique-shop'), 'section' => 'boutique_shop_typography_settings', )); // Body Font Setting $wp_customize->add_setting('boutique_shop_body_font_family', array( 'default' => '', 'sanitize_callback' => 'boutique_shop_sanitize_choicess', )); $wp_customize->add_control('boutique_shop_body_font_family', array( 'type' => 'select', 'choices' => $font_choices, 'label' => __('Select Font for Body', 'boutique-shop'), 'section' => 'boutique_shop_typography_settings', )); // Blog Settings $wp_customize->add_section('section_blog_setting', array( 'title' => __('Blog / Archive Settings', 'boutique-shop'), 'panel' => 'theme_option_panel' ) ); // Blog Button Label $wp_customize->add_setting( 'theme_options[boutique_shop_readmore_text]', array( 'default' => $default['boutique_shop_readmore_text'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'boutique_shop_sanitize_textarea_content', 'transport' => 'refresh', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_readmore_text]', array( 'label' => __( 'Button Label', 'boutique-shop' ), 'section' => 'section_blog_setting', 'type' => 'text', ) ); $wp_customize->add_setting('boutique_shop_post_button_icon',array( 'default' => 'fas fa-arrow-right', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control(new Boutique_Shop_Changeable_Icon( $wp_customize,'boutique_shop_post_button_icon',array( 'label' => __('Read More Button Icon','boutique-shop'), 'transport' => 'refresh', 'section' => 'section_blog_setting', 'type' => 'icon' ))); // Footer Setting Section starts $wp_customize->add_section('section_footer', array( 'title' => __('Footer Setting', 'boutique-shop'), 'panel' => 'theme_option_panel' ) ); // Footer Copyright Setting control $wp_customize->add_setting( 'theme_options[boutique_shop_footer_setting]', array( 'default' => $default['boutique_shop_footer_setting'], 'sanitize_callback' => 'boutique_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_footer_setting]', array( 'label' => __( 'Show Footer Copyright', 'boutique-shop' ), 'section' => 'section_footer', 'type' => 'checkbox', ) ); // Setting boutique_shop_copyright_text. $wp_customize->add_setting( 'theme_options[boutique_shop_copyright_text]', array( 'default' => $default['boutique_shop_copyright_text'], 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'refresh', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_copyright_text]', array( 'label' => __( 'Copyright Text', 'boutique-shop' ), 'section' => 'section_footer', 'type' => 'text', 'priority' => 100, ) ); /* Footer Background Color*/ $wp_customize->add_setting( 'footer_bg_color', array( 'default' => '#000000', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'footer_bg_color', array( 'label' => __('Footer Widget Area Background Color', 'boutique-shop'), 'section' => 'section_footer', 'type' => 'color', ) ) ); // Add Setting for Footer Widget Columns $wp_customize->add_setting('boutique_shop_footer_widget_columns', array( 'default' => '4', 'sanitize_callback' => 'sanitize_text_field', )); // Add Control for Footer Widget Columns $wp_customize->add_control('boutique_shop_footer_widget_columns', array( 'label' => __('Number of Columns', 'boutique-shop'), 'section' => 'section_footer', 'type' => 'select', 'choices' => array( '0' => __('None', 'boutique-shop'), '1' => __('1 Column', 'boutique-shop'), '2' => __('2 Columns', 'boutique-shop'), '3' => __('3 Columns', 'boutique-shop'), '4' => __('4 Columns', 'boutique-shop'), ), )); // General Setting Section starts $wp_customize->add_section('section_general_setting', array( 'title' => __('General Setting', 'boutique-shop'), 'panel' => 'theme_option_panel' ) ); // Add the preloader setting and control $wp_customize->add_setting( 'theme_options[boutique_shop_header_donate_preloader_setting]', array( 'default' => false, // Default value (false means preloader is off) 'sanitize_callback' => 'boutique_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_header_donate_preloader_setting]', array( 'label' => __( 'Show Preloader', 'boutique-shop' ), 'section' => 'section_general_setting', 'type' => 'checkbox', ) ); /** Scroll to top control */ $wp_customize->add_setting( 'theme_options[boutique_shop_header_donate_scroll_to_top]', array( 'default' => $default['boutique_shop_header_donate_scroll_to_top'], 'sanitize_callback' => 'boutique_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_header_donate_scroll_to_top]', array( 'label' => __( 'Show Scroll To Top', 'boutique-shop' ), 'section' => 'section_general_setting', 'type' => 'checkbox', ) ); $wp_customize->add_setting('boutique_shop_scroll_icon',array( 'default' => 'fas fa-arrow-up', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control(new Boutique_Shop_Changeable_Icon( $wp_customize,'boutique_shop_scroll_icon',array( 'label' => __('Scroll Top Icon','boutique-shop'), 'transport' => 'refresh', 'section' => 'section_general_setting', 'type' => 'icon' ))); $wp_customize->add_setting('boutique_shop_scroll_top_alignment',array( 'default' => 'right-align', 'sanitize_callback' => 'boutique_shop_sanitize_scroll_top_alignment' )); $wp_customize->add_control('boutique_shop_scroll_top_alignment',array( 'type' => 'select', 'label' => __('Scroll Top Alignment','boutique-shop'), 'section' => 'section_general_setting', 'choices' => array( 'right-align' => __('Right Alignment','boutique-shop'), 'center-align' => __('Center Alignment','boutique-shop'), 'left-align' => __('Left Alignment','boutique-shop'), ), ) ); /** Sticky Header control */ $wp_customize->add_setting( 'theme_options[boutique_shop_sticky_header]', array( 'default' => $default['boutique_shop_sticky_header'], 'sanitize_callback' => 'boutique_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_sticky_header]', array( 'label' => __( 'Show Sticky Header', 'boutique-shop' ), 'section' => 'section_general_setting', 'type' => 'checkbox', ) ); // Add Setting for Menu Font Weight $wp_customize->add_setting( 'menu_font_weight', array( 'default' => '900', 'sanitize_callback' => 'boutique_shop_sanitize_font_weight', ) ); // Add Control for Menu Font Weight $wp_customize->add_control( 'menu_font_weight', array( 'label' => __( 'Menu Font Weight', 'boutique-shop' ), 'section' => 'section_general_setting', 'type' => 'select', 'choices' => array( '100' => __( '100 - Thin', 'boutique-shop' ), '200' => __( '200 - Extra Light', 'boutique-shop' ), '300' => __( '300 - Light', 'boutique-shop' ), '400' => __( '400 - Normal', 'boutique-shop' ), '500' => __( '500 - Medium', 'boutique-shop' ), '600' => __( '600 - Semi Bold', 'boutique-shop' ), '700' => __( '700 - Bold', 'boutique-shop' ), '800' => __( '800 - Extra Bold', 'boutique-shop' ), '900' => __( '900 - Black', 'boutique-shop' ), ), ) ); // Add Setting for Menu Text Transform $wp_customize->add_setting( 'menu_text_transform', array( 'default' => 'uppercase', 'sanitize_callback' => 'boutique_shop_sanitize_text_transform', ) ); // Add Control for Menu Text Transform $wp_customize->add_control( 'menu_text_transform', array( 'label' => __( 'Menu Text Transform', 'boutique-shop' ), 'section' => 'section_general_setting', 'type' => 'select', 'choices' => array( 'none' => __( 'None', 'boutique-shop' ), 'capitalize' => __( 'Capitalize', 'boutique-shop' ), 'uppercase' => __( 'Uppercase', 'boutique-shop' ), 'lowercase' => __( 'Lowercase', 'boutique-shop' ), ), ) ); $wp_customize->add_setting('boutique_shop_theme_width',array( 'default' => 'full-width', 'sanitize_callback' => 'boutique_shop_sanitize_theme_width' )); $wp_customize->add_control('boutique_shop_theme_width',array( 'type' => 'select', 'label' => __('Theme Width Option','boutique-shop'), 'section' => 'section_general_setting', 'choices' => array( 'full-width' => __('Fullwidth','boutique-shop'), 'container' => __('Container','boutique-shop'), 'container-fluid' => __('Container Fluid','boutique-shop'), ), ) ); // Woocommerce Setting $wp_customize->add_section('section_woocommerce_setting', array( 'title' => __('Woocommerce Setting', 'boutique-shop'), 'panel' => 'theme_option_panel' ) ); // Select No Of Columns $wp_customize->add_setting( 'theme_options[boutique_shop_archive_product_per_row]', array( 'default' => $default['boutique_shop_archive_product_per_row'], 'sanitize_callback' => 'boutique_shop_sanitize_select', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_archive_product_per_row]', array( 'label' => esc_html__( 'Select No Of Columns', 'boutique-shop' ), 'section' => 'section_woocommerce_setting', 'type' => 'select', 'choices' => array( '1' => '1 Column', '2' => '2 Column', '3' => '3 Column', '4' => '4 Column', ), ) ); $wp_customize->add_setting( 'theme_options[boutique_shop_archive_product_per_page]', array( 'default' => $default['boutique_shop_archive_product_per_page'], 'transport' => 'refresh', 'sanitize_callback' => 'boutique_shop_sanitize_number_absint', 'sanitize_js_callback' => 'absint', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_archive_product_per_page]', array( 'label' => esc_html__( 'Product Per Page','boutique-shop' ), 'section' => 'section_woocommerce_setting', 'type' => 'number', ) ); // 404 PAGE SETTINGS $wp_customize->add_section( 'boutique_shop_404_section', array( 'title' => __( '404 Page Settings', 'boutique-shop' ), 'panel' => 'theme_option_panel' ) ); $wp_customize->add_setting('404_page_image', array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'esc_url_raw', // Sanitize as URL )); $wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, '404_page_image', array( 'label' => __('404 Page Image', 'boutique-shop'), 'section' => 'boutique_shop_404_section', 'settings' => '404_page_image', ))); $wp_customize->add_setting('404_pagefirst_header', array( 'default' => __('404', 'boutique-shop'), 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', // Sanitize as text field )); $wp_customize->add_control('404_pagefirst_header', array( 'type' => 'text', 'label' => __('Heading', 'boutique-shop'), 'section' => 'boutique_shop_404_section', )); // Setting for 404 page header $wp_customize->add_setting('404_page_header', array( 'default' => __('Sorry, that page can\'t be found!', 'boutique-shop'), 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field', // Sanitize as text field )); $wp_customize->add_control('404_page_header', array( 'type' => 'text', 'label' => __('Heading', 'boutique-shop'), 'section' => 'boutique_shop_404_section', )); // Homepage Static setting and control. $wp_customize->add_setting( 'theme_options[boutique_shop_enable_frontpage_content]', array( 'default' => $default['boutique_shop_enable_frontpage_content'], 'sanitize_callback' => 'boutique_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_enable_frontpage_content]', array( 'label' => __( 'Enable Content', 'boutique-shop' ), 'description' => __( 'Click to enable content on static front page only.', 'boutique-shop' ), 'section' => 'static_front_page', 'type' => 'checkbox', ) ); // Show / Hide Frontpage Content $wp_customize->add_setting( 'theme_options[boutique_shop_enable_frontpage_content]', array( 'default' => $default['boutique_shop_enable_frontpage_content'], 'sanitize_callback' => 'boutique_shop_sanitize_checkbox', ) ); $wp_customize->add_control( 'theme_options[boutique_shop_enable_frontpage_content]', array( 'label' => esc_html__( 'Enable Homepage Content', 'boutique-shop' ), 'description' => esc_html__( 'Enable content on A static page.', 'boutique-shop' ), 'section' => 'static_front_page', 'type' => 'checkbox', ) );