• Resolved DennisRosheuvel

    (@dennisrosheuvel)


    Polylang => Versie: 1.6.3

    Searched for a solution, but could not find anything that I would understand.

    header.php of theme zerif-lite looks like it’s okay, but no flag are shown in
    the menu.

    Added a menu per language: Dutch, Englisch and German
    Default language is Dutch.
    Connected every menu to a language.
    When I change the language in the url (/?lang=de) the correct menu is shown.

    But no language selector.

    Need to know if it can be fixed and if it will show the other sections also in the correct language.

    headr.php
    <?php wp_nav_menu( array(‘theme_location’ => ‘primary’, ‘container’ => false, ‘menu_class’ => ‘nav navbar-nav navbar-right responsive-nav main-nav-list’, ‘fallback_cb’ => ‘zerif_wp_page_menu’)); ?>

    functions.php
    // This theme uses wp_nav_menu() in one location.

    register_nav_menus(array(

    ‘primary’ => __(‘Primary Menu’, ‘zerif-lite’),

    ));

    https://www.ads-software.com/plugins/polylang/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Very disappointed with this theme. It does NOT work with Polylang (the only translation tool worth using to date). Many of the forum entries say the problem is resolved but this is not the case.
    I’m going to have to throw away all my hard work and use a theme that is proven. What a waste.

    I’m not sure if this is at all relevant…. but zerif-lite only seems to support 1 menu. Surely if you are using 3 different language menus you need to modify the theme to support more than 1 menu? I was trying to do this with the help of

    https://codex.www.ads-software.com/Navigation_Menus

    but I haven’t yet succeeded. I was trying to add a new location for a second menu (which would replace the primary menu on certain chosen pages). My first problem was that the function:

    register_nav_menus(array(
    ‘primary’ => __(‘Primary Menu’, ‘zerif-lite’),
    ));

    uses 2 arguments (Primary Menu and zerif-lite) instead of the single argument ‘header-menu’ or ‘extra-menu’ showin in the WP codex….

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘no language switch shown in menu of theme zerif-lie with polylang’ is closed to new replies.