Snippets: Replace Mobile Menu Hamburger with Custom SVG

add_filter( 'wpex_mobile_menu_open_button_text', function( $text ) {

    $svg = '<svg xmlns="http://www.w3.org/2000/svg" height="25px" width="25px" viewBox="0 0 24 24" fill="currentColor"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>';

   return '<div class="wpex-flex wpex-items-center">' . $svg . '</div>';
} );
All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)