selective_refresh ) ? 'postMessage' : 'refresh'; $wp_customize->add_panel( 'auramart_general', array( 'priority' => 31, 'title' => esc_html__( 'General', 'auramart' ), ) ); /*========================================= Scroller =========================================*/ $wp_customize->add_section( 'top_scroller', array( 'title' => esc_html__( 'Top Scroller', 'auramart' ), 'priority' => 4, 'panel' => 'auramart_general', ) ); $wp_customize->add_setting( 'hs_scroller' , array( 'default' => '1', 'sanitize_callback' => 'auramart_sanitize_checkbox', 'capability' => 'edit_theme_options', 'priority' => 1, ) ); $wp_customize->add_control( 'hs_scroller', array( 'label' => esc_html__( 'Hide / Show Scroller', 'auramart' ), 'section' => 'top_scroller', 'type' => 'checkbox' ) ); /*========================================= Breadcrumb =========================================*/ $wp_customize->add_section( 'breadcrumb_setting', array( 'title' => esc_html__( 'Page Breadcrumb', 'auramart' ), 'priority' => 12, 'panel' => 'auramart_general', ) ); // Settings $wp_customize->add_setting( 'breadcrumb_settings' ,array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'auramart_sanitize_text', 'priority' => 1, ) ); $wp_customize->add_control( 'breadcrumb_settings', array( 'type' => 'hidden', 'label' => __('Settings','auramart'), 'section' => 'breadcrumb_setting', ) ); // Breadcrumb Hide/ Show Setting // $wp_customize->add_setting( 'hs_breadcrumb' , array( 'default' => '1', 'sanitize_callback' => 'auramart_sanitize_checkbox', 'capability' => 'edit_theme_options', 'priority' => 2, ) ); $wp_customize->add_control( 'hs_breadcrumb', array( 'label' => esc_html__( 'Hide / Show', 'auramart' ), 'section' => 'breadcrumb_setting', 'type' => 'checkbox' ) ); } add_action( 'customize_register', 'auramart_general_setting' );