Change text in toggle menu
-
Hi Longevite Team,
I find the theme wonderful and use it on a German site. How can I change the text “MENU” in the toggle menu? I would like to have the text “Auswahl” there.
Thanks in advance and greetings
KlausPS: the link goes to a development environment. The site is not live yet.
The page I need help with: [log in to see the link]
-
Hello @klaus-moll,
There are number of free and premium plugins you can choose to translate your website.
Here is the referenceThanks!
-
This reply was modified 7 years, 3 months ago by
Shaped Pixels.
Hello, thanks for the quick answer. But that is not my question. I just want to change the text in the button. If I change the page in responsiv mode (mobile phone) the menu is hidden and only the button “Menu” appears. I just want to change this word to a German word (Auswahl). In the customizer I don’t find a way to change that.
many greetings
KlausHello @klaus-moll,
You can modify the template inside;
wp-content/themes/longevity/template-parts/header.php
For reference; Search menu-toggle inside the template then replace the text Menu as follows;<button class="menu-toggle"><?php esc_html_e( 'Auswahl', 'longevity' ); ?></button>Before proceeding make sure you use the child theme(copy the file structure exactly in your child theme) and make the desired changes so that your custom changes won’t lost upon further theme updates.
Here is the reference on working with child themeLet us know,
Thanks!
Hello, thanks for the info. I made the change (is still active) in the “/template-parts/header.php”. But “MENU” will still be output. What have I done wrong?
Greetings
KlausHello, I was too quick with my answer. The header php contains the term “Menu” twice. I don’t know why? I made the change at the second place below and it works. Thanks for the help!
Greetings
KlausHello @klaus-moll,
Yes, those are the conditions for different header styles you can choose from. If it is working now, we suggest you to please mark the thread resolved.
Let us know
Thanks!
Many thanks for the fast help!
-
This reply was modified 7 years, 3 months ago by
The topic ‘Change text in toggle menu’ is closed to new replies.
