Support » Plugin: Polylang » Polyang Nav-Menu isnt changing with the language change

  • Resolved ppkoch


    Hello Polylang Team , Community.

    Its my first try to to make a multi language site with wordpress.

    So far so good I good Polylang installed, activated and running.
    I can create multi language site and change throw the link from one language to the other.

    The only thing i trouble with is the change of the Nav-Menu it always stays the same. I created two menus ( just 2 languages) But there just displays only one.

    so the code i have:
    <div class=”collapse navbar-collapse” id=”bs-example-navbar-collapse-1″>

    $args = array(
    ‘menu’ => ‘header-menu’,
    ‘menu_class’ => ‘nav navbar-nav navbar-right’,
    ‘container’ => ‘false’,
    ‘walker’ => new wp_bootstrap_navwalker


    </div><!– /.navbar-collapse –>

    you see I work with boostraps and the walker class to create a nice dropdown menu

    the functions.php
    add_theme_support( ‘menus’ );

    function register_theme_menus(){
    ‘header-menu’ =>__( ‘Header Menu’ )
    add_action( ‘init’, ‘register_theme_menus’);
    require_once dirname( __FILE__ ) . ‘/inc/wp_bootstrap_navwalker.php’;

    I hope I gave a good problem description, if something is missing let me know.

    If somebody has any suggestions, pls let me know


Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Polyang Nav-Menu isnt changing with the language change’ is closed to new replies.