Snippets: Move Sidebar Mobile Menu to Top

add_filter( 'wpex_mobile_menu_source', function( $array ) {
	$get_nav = $array['nav']; // store nav
	unset( $array['nav'] ); // remove nav
	$array['nav'] = $get_nav; // re add nav at bottom
	return $array;
} );

Snippet Type: PHP

Posted Under: Mobile

All PHP snippets should be added via a child theme's functions.php file.