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

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

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

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.