Manav909
Forum Replies Created
-
Forum: Plugins
In reply to: [qTranslate X] Incorrect language linkI try to translate my navigation menu on other languages too.
Include the function on function.php
Add the ‘walker’ => new CustomLinkModifierWalker() on the header.php file.
Change the name of the navigation menu to <!- -:en- ->HOME<!- -:- -><!- -:gr- ->ΑΡΧΙΚΗ<!- -:- -> and url to /en|en|/|gr|
However, the translation doesn’t work. The menu shows both the strings in the navigation like HOMEΑΡΧΙΚΗ and the link is /en|en|/|gr|.What am I doing wrong? Or is there another way to translate the menu?
Under WordPress 4.0.1
UPDATE
Changing the names to [:en]HOME[:el]ΑΡΧΙΚΗ without the above code makes the translations works, but I still cannot make the URLs works.
And the navmenu code:
For Greek:
<ul class=”menu” id=”nav-menu”>
<li class=”menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-1091″>ΑΡΧΙΚΗ
<li class=”menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-1092″>ΣΧΕΤΙΚΑFor English:
<ul class=”menu” id=”nav-menu”>
<li class=”menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-1091″>HOME
<li class=”menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-1092″>ABOUTUPDATE 3
I tried to add the URL with the full path including the tags, like this:
[:en]http://www.mydomain.gr/en[:el]http://www.mydomain.gr
But after I click on “save button”, the url input is empty. It doesn’t save the url path.