# GeneratePress: Change the Mobile Menu Label

> Changes the "Menu" text next to the hamburger icon in GeneratePress, or removes it so only the icon shows.

- Type: PHP
- Runs: Frontend only
- Category: [Page Builders & Themes](https://wpide.com/library/category/page-builders/)
- Tags: generatepress, mobile-menu, navigation
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/generatepress-mobile-menu-label/

## Code

```php
// Text next to the menu icon.
$wpide_gp_menu_label = 'Browse';

add_filter( 'generate_mobile_menu_label', function () use ( $wpide_gp_menu_label ) {
    return esc_html( $wpide_gp_menu_label );
} );
```

## Notes

Set the label to an empty string to show the icon only; screen readers still announce the button.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "GeneratePress: Change the Mobile Menu Label" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
