• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

How To Modify The Responsive Menu Text In Genesis

This simple solution enables you to change the name of the responsive menu from the default text which is MENU to something else.

All you need to do is go to your child theme folder > config > responsive-menus.php and add this line of code :

'mainMenu'            => __( 'Menu Text', 'genesis' ),

to this existing code

return [
    'script' => [
        'menuIconClass'       => 'ionicons-before ion-ios-menu',
        'menuIconOpenedClass' => 'ionicons-before ion-ios-menu',
        'subMenuIconClass'    => 'ionicons-before ion-ios-arrow-down',
        'menuClasses'         => [
            'combine' => [
                '.nav-primary',
                '.nav-off-screen',
            ],
            'others'  => [],
        ],
    ],
];

And you should end up with something like this :

Tested using the Essence Pro child theme by StudioPress however should work in most newer versions of Genesis child themes.

Essence Pro Theme Nav Menu

Reader Interactions

Comments

  1. Alvaro Guevara says

    August 16, 2020 at 4:54 am

    Why would someone want to do this Brad?

    Log in to Reply
    • Brad Dalton says

      August 16, 2020 at 9:18 am

      Hello Al. This was a question from someone in the community however it simply enables you to change the word MENU which is displayed when the mobile hamburger icon is displayed and also for translators who want the text changed to another language.

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems