[resolved] Language specific navigation menus? (5 posts)

  1. nkosazana
    Posted 3 years ago #


    I read this article explaining how to have a menu for each language http://wiki.xiligroup.org/index.php/Xili-language:_navigation_menu#Appearance_Menus_Screen

    I've read it more than once, but I don't understand the instructions. I am a web developer, but I cannot understand what is being said, I think the article was not written by an English speaker.

    I have followed the instruction of Case 1, the french translation of my english page is on my main menu.

    Can someone please exlain to me how to remove translations from the main menu, and have a 'french menu' show up if the user wants the french content?

    Here is the link

    Thank you


  2. Marcel Andrew
    Posted 3 years ago #

    thank you for the compliments to the author who has bothered to write the article in wiki ;-)

    If you are a web developer, I invite you to read the source of the example child theme named twentyeleven-xili... You will understand how menus location are cloned for each language... see http://2011.wpmu.xilione.com/download/

    and this page http://wiki.xiligroup.org/index.php/Xili-language:_navigation_menu

    Enjoy !

  3. nkosazana
    Posted 3 years ago #

    Thank you for your reply. I will follow your instructions.

    I meant no offense or disrespect by saying the instructions were not clear, and I am sorry if it came across that way. I know a lot of work goes into creating plugins. I am merely trying to understand how this one works.

    Thank you.

  4. leijin2
    Posted 3 years ago #

    No offense, but that instruction is too hard to understand...
    I'm reading the source code of twentyeleven-xili now...

  5. jsapoznik
    Posted 2 years ago #

    Hi!! I was having the same problem, but using qtranslate, I solved it using 2 navigation menus and calling each other with a drop down selection. Maybe you can adapt it to work with xili. Hope it helps!!

    <nav id="-main-menu">
    if(qtrans_getLanguage()=='en') {
    // put your code here if the current language code is 'en' (English)
    wp_nav_menu( array('menu' => 'Nav_en' ));

    } elseif(qtrans_getLanguage()=='es') {
    // put your code here if the current language code is 'id' (EspaƱol)
    wp_nav_menu( array('menu' => 'Nav' ));}?></nav>

    <div> <?=qtrans_generateLanguageSelectCode('dropdown');?> </div>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • xili-language
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic