I am developing a site in Wordpress. I am using the twentyseventeen-theme. i would like language-[content-] switcher in mega menu – without any ml-system - because i do not need ml-things. While customizing the the theme according to my website needs, i found that the theme only supports one menu. I want to add another menu.
at the moment the site has
– Max-Mega-Menü
– etc. etx
in the menu the estimated textamount has got max 2000 words – in five languages: german, english; french, spanish, italien note: the texts are allready translated – no need to do a runtime translation or something similar. I have a defined text amount where which is allready translated.
what is aimed: i want to add all those texts in to the max-mega-menu:
idea: can i do this with a added (language-[content] )switcher in the mega menu
guess: i guess that this is possible – without using a multilang system eg. like:
-WPML
-Polylang
-Weglot
-TranslatePress
again; since i only have a little amount of text which is allready translated completely i guess that i do not need a multilang system. I guess that a (language- [content])-switcher will be sufficient to arrrange this.
so i think that ,,,,I want to add another menu.... for the different languages i have - 6 different languages: .... subsequently i should add six menus in the code below...
approach: could i do it like so:</strong> Add the following code to the functions.php file. The 2 menus are the “Primary”, and “Secondary” menus.
conclusio: so i think that ,,,,i have to add alot - for the different languages i have - 6 different languages: .... subsequently i should add six menus in the code above...
well i have mused alot bout the code: To add them to my site i should have to add the following to the WordPress template files (most likely my header.php and footer.php files).
Question
tarifa
dear community hello dear experts,
I am developing a site in Wordpress. I am using the twentyseventeen-theme. i would like language-[content-] switcher in mega menu – without any ml-system - because i do not need ml-things. While customizing the the theme according to my website needs, i found that the theme only supports one menu. I want to add another menu.
at the moment the site has
– Max-Mega-Menü
– etc. etx
in the menu the estimated textamount has got max 2000 words – in five languages: german, english; french, spanish, italien
note: the texts are allready translated – no need to do a runtime translation or something similar. I have a defined text amount where which is allready translated.
what is aimed: i want to add all those texts in to the max-mega-menu:
idea: can i do this with a added (language-[content] )switcher in the mega menu
guess: i guess that this is possible – without using a multilang system eg. like:
-WPML
-Polylang
-Weglot
-TranslatePress
again; since i only have a little amount of text which is allready translated completely i guess that i do not need a multilang system. I guess that a (language- [content])-switcher will be sufficient to arrrange this.
see the example:
furthermore: to show the needs in another picture i add a second - here we see more things ...
see the structure of the page...
so i think that ,,,,I want to add another menu.... for the different languages i have - 6 different languages: .... subsequently i should add six menus in the code below...
approach: could i do it like so:</strong> Add the following code to the functions.php file. The 2 menus are the “Primary”, and “Secondary” menus.
conclusio: so i think that ,,,,i have to add alot - for the different languages i have - 6 different languages: .... subsequently i should add six menus in the code above...
well i have mused alot bout the code: To add them to my site i should have to add the following to the WordPress template files (most likely my header.php and footer.php files).
and so forth and so forth... untill i reach the six different languages..
Well - what do you think!? does this fit the needs!?
What do you think? Love to hear from you.
Link to comment
https://www.neowin.net/forum/topic/1388504-wordpress-adding-a-content-language-switcher-to-the-menu/Share on other sites
1 answer to this question
Recommended Posts