Hi,
Any idea that could help me?
Thanks.
Hi
See, “Edit menu” tab and “Manage location” tab: https://codex.wordpress.org/File:appearance-menus.png
Does it help?
Thanks.
Ok, I understand, I don’t have this menu and I can read that my template doesn’t natively support menus. That must be the reason…
If i understand well, I have to create new files in appearance/editor for the Englsih version?
If i understand well, I have to create new files in appearance/editor for the Englsih version?
No, you need only to click on the link “create a new menu” to create your menu. After this creating, the Manage Location tab will be displayed.
Well, even after creating the second menu, I don’t have the Manage location tab. See here:
It’s because your theme doesn’t support the native WordPress menus. It explains by the warning on your screenshot: “Votre thème ne peut pas utiliser les menus nativement …”
Yes, that’s what I thought. Thanks.
Then, I have to create new files in appearance/editor for the English version?
Do not use the WordPress Editor to modify some file. Because if you make a wrong thing, you can have a fatal error.
I suggest you to contact your theme author to know if your theme is compatible with multilingual plugins and if yes how to create several menus.
It’s a customized theme and I’m afraid I can’t find the theme author.
My idea is:
1) duplicate header.php and rename the copy “header_en.php” in which I would have
` <nav id=”main-menu”>
<?php wp_nav_menu(array(‘menu’=>’principal_en’)); ?>
</nav>`
where principal_en is my English menu
2) duplicate page.php and rename the copy “page_en.php” in which I would call header_en.php
3) assign the “page_en.php” for all English pages.
Do you think that could work?
With Polylang you don’t need to create a template per language. Polylang works with the native WordPress functions.
So if you want to use Polylang, you must use the WordPress functions to create your menus, see codex.
ok, thanks. I’ll have a llok at the codex
That worked perfectly. I just added the function register_my_menu() stuff in functions.php and the location tab appeared…
Thanks a lot