8 entries in
omize->add_control( new Tripp_Customize_Label_Control( $wp_customize, 'nav_menu_buttons', array( 'section' => 'navigation_section', 'label' => esc_html__( 'Menu Buttons', 'tripp' ), ) ) ); // Navigation -> Search Button. $wp_customize->add_setting( 'nav_search_button', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'nav_search_button', array( 'section' => 'navigation_section', 'label' => esc_html__( 'Search Button', 'tripp' ), 'description' => esc_html__( 'Displays a search button.', 'tripp' ), 'type' => 'checkbox', ) ); // Navigation -> Displays a search button on mobile navigation menu by default. $wp_customize->add_setting( 'nav_search_button_mobile', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'nav_search_button_mobile', array( 'section' => 'navigation_section', 'label' => esc_html__( 'Displays a search button on mobile navigation menu by default.', 'tripp' ), 'type' => 'checkbox', 'active_callback' => 'tripp_customizer_is_search_button_enabled', ) ); // Navigation -> Login Button. $wp_customize->add_setting( 'nav_login_button', array( 'default' => false, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'nav_login_button', array( 'section' => 'navigation_section', 'label' => esc_html__( 'Log In Button', 'tripp' ), 'description' => esc_html__( 'Displays a Log In button.', 'tripp' ), 'type' => 'checkbox', ) ); // Navigation -> Off-Canvas Sidebar Button. $wp_customize->add_setting( 'nav_sidebar_button', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'tripp_customize_sanitize_checkbox', ) ); $wp_customize->add_control( 'nav_sidebar_button', array( 'section' => 'navigation_section', 'label' => esc_html__( 'Off-Canvas Sidebar Button', 'tripp' ), 'description' => esc_html__( 'Displays a toggle button to show or hide a slide-out sidebar.', 'tripp' ), 'type' => 'checkbox', ) ); /** * To improve user experience: * * - Move the Menus panel before the Header section. */ $wp_customize->get_panel( 'nav_menus' )->priority = 50; } add_action( 'customize_register', 'tripp_customizer_register_navigation_settings', 20 );