add_section('section_menu', array( 'title' => esc_html__('Menu Setting', 'akks'), 'panel' => 'theme_option_panel' ) ); /************************** Offcanvs Enable ******************************/ $wp_customize->add_setting('theme_options[enable_offcanvas_header]', array( 'default' => $default['enable_offcanvas_header'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'akks_sanitize_checkbox' ) ); $wp_customize->add_control('theme_options[enable_offcanvas_header]', array( 'label' => esc_html__('Enable Offcanvas Section', 'akks'), 'description' => sprintf( '%1$s %2$s %3$s', esc_html__( 'Note: To show Offcanvas.', 'akks' ), esc_html__( 'Click Here', 'akks' ), esc_html__( 'to add item.', 'akks' ) ), 'section' => 'section_menu', 'settings' => 'theme_options[enable_offcanvas_header]', 'type' => 'checkbox', ) ); /************************** Search Enable ******************************/ $wp_customize->add_setting('theme_options[enable_search_header]', array( 'default' => $default['enable_search_header'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'akks_sanitize_checkbox' ) ); $wp_customize->add_control('theme_options[enable_search_header]', array( 'label' => esc_html__('Enable Search', 'akks'), 'section' => 'section_menu', 'settings' => 'theme_options[enable_search_header]', 'type' => 'checkbox', ) );