Snippets: Insert a Button inside The Header Menu Navigation Mobile Toggle

This sample snippet show you how to insert a button (it can be anything though) inside the Header Menu Mobile Toggle area.

// Insert a button inside the mobile menu "Toggle" navbar
add_action( 'wpex_hook_mobile_menu_toggle_bottom', function() {
	echo '<a href="#" class="theme-button">Buy Now</a>';
} );


Version Required:5.0+

Snippet Type: PHP

Posted Under: Header

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)