Community Forums › Forums › Archived Forums › Design Tips and Tricks › Essence Pro – hamburger menu. Where to change the text itself?
Tagged: Essence Pro, nav menu, responsive menu
- This topic has 14 replies, 4 voices, and was last updated 5 years, 7 months ago by
iwannabe.
-
AuthorPosts
-
August 7, 2020 at 3:40 pm #500485
iwannabe
ParticipantVersion: 1.4.0
Hi!
I need to translate the word "MENU" next to the hamburger on the mobile version into my language. But I can't find where to do it ...
In the previous version of Essence Pro v.1.1.0, it was here:
lib/header-functions.php
echo '<button class="off-screen-item toggle-off-screen-menu-area"><i class="icon ion-md-menu"></i> Menu</button>';
Really need your help.
August 8, 2020 at 9:05 am #500488AnitaC
KeymasterOpen your Essence Pro theme, then go to /lib/header-functions.php. Go to line 73 and 74. You can edit the word there.
Need help with customization or troubleshooting? Reach out to me.
August 8, 2020 at 9:25 am #500489iwannabe
ParticipantThanks, I changed the word Menu on line 73, but it didn't help 🙁
$ menu_text = __ ('Menu', 'essence-pro');
$ hide_text = __ ('Hide Off Screen Menu', 'essence-pro');What needs to be changed on line 74?
August 8, 2020 at 9:37 am #500490AnitaC
KeymasterAugust 8, 2020 at 9:39 am #500491iwannabe
ParticipantDid this. It does not help.
What needs to be changed on line 74?
August 8, 2020 at 10:07 am #500493AnitaC
KeymasterPost your code here so I can see what you changed.
Need help with customization or troubleshooting? Reach out to me.
August 8, 2020 at 10:12 am #500494iwannabe
Participant$menu_text = __( 'Меню', 'essence-pro' );
$hide_text = __( 'Hide Off Screen Menu', 'essence-pro' );August 8, 2020 at 10:13 am #500495AnitaC
KeymasterCan you provide a link to the website?
Need help with customization or troubleshooting? Reach out to me.
August 8, 2020 at 10:21 am #500496iwannabe
Participantpozdnev.com
August 8, 2020 at 10:36 am #500497AnitaC
KeymasterThe instructions I gave you should work. It's not working for me. I'd submit a ticket to StudioPress and ask them why changing that word in the file is not working. You can give them a link to our discussion here.
Need help with customization or troubleshooting? Reach out to me.
August 8, 2020 at 10:42 am #500498iwannabe
ParticipantThanks, I'll write to them.
August 12, 2020 at 6:10 pm #500545vukmilicevic
ParticipantHere is the code to put in functions.php or in another way. Adjust other parameters as per your needs.
function genesis_sample_responsive_menu_settings() { $settings = array( 'mainMenu' => __('YOUR_MENU_NAME_OR_EMPTY', 'essence-pro'), 'menuIconClass' => 'dashicons-before dashicons-menu', 'subMenu' => __('Submenu', 'essence-pro'), 'subMenuIconClass' => 'dashicons-before dashicons-arrow-down-alt2', 'menuClasses' => array( 'combine' => array( '.nav-primary', ), 'others' => array(), ), ); return $settings; }August 14, 2020 at 1:15 am #500567Brad Dalton
ParticipantAugust 14, 2020 at 2:57 am #500568iwannabe
ParticipantThank you! The StudioPress support gave me the same advice. And it works!
You will need to edit the essence-pro/config/responsive-menus.php then add a mainMenu key so it looks like this: 'mainMenu' => 'MENU TEST',
August 14, 2020 at 2:57 am #500569iwannabe
ParticipantThanks for your help!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.