• Resolved icakeov

    (@itucakov)


    Hi Chouby

    I am setting up Polylang and I noticed that the Menu tab is not in the settings of the plugin.
    I saw in one of the forums that the functions.php has to have register_nav_menu() and mine does.
    Then, from your documentation I saw that I also need to have ‘wp_nav_menu(array(‘theme_location’ => ‘primary’));’ in functions.php too. It doesn’t have it which is I’m guessing the cause for the menu tab not being there.

    Furthermore, I took over this website a few weeks ago and after examining things more, looks like all the menu options are loaded manually in the header.php
    How does polylang deal with custom added menus?
    Or for that matter custom added anything else..?

    Hope the question is clear enough. Here’s the website in question: http://hushmagazine.ca/

    http://wordpress.org/plugins/polylang/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chouby

    (@chouby)

    I am setting up Polylang and I noticed that the Menu tab is not in the settings of the plugin

    This tab does not exist anymore. Since v1.1, everything is no done in the standard menu page of WordPress.

    Furthermore, I took over this website a few weeks ago and after examining things more, looks like all the menu options are loaded manually in the header.php

    So there are 2 possibilities. Either you rewrite the file to take profit of the dynamically generated menus of WordPress or you hardcode the menu in the other languages too.
    You can use get_locale() to test whether to display one menu or another:

    if ('en_US' == get_locale()) {
    // display English menu
    }
    else {
    // display some other menu
    }

    Thread Starter icakeov

    (@itucakov)

    Great, thanks Chouby!
    I assume I can use the get_locale function basically for anything that is custom coded on the website?

    Plugin Author Chouby

    (@chouby)

    Yes, sure.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘The tab Menus missing’ is closed to new replies.