Snippet: Alter The “bars” (hamburger icon) In The Mobile Menu Toggle Link
// Example 1: Change the output completely.
add_filter( 'wpex_mobile_menu_toggle_icon', function( $output ) {
return 'YOUR CUSTOM TEXT OR HTML';
} );
// Example 2: Add "Menu" Text next to the. hamburger icon.
add_filter( 'wpex_mobile_menu_toggle_icon', function( $output ) {
return '<span class="wpex-inline-block wpex-mr-10">Menu</span>' . $output;
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin.
We recommend Code Snippets (100% Free) or WPCode (sponsored)
We recommend Code Snippets (100% Free) or WPCode (sponsored)