Qtranslate error custom link menu
-
Hi there,
I’ve been researching about this topic and found two treads, but neither solution worked for me.
As you can se I have tho languages. CA and ES.
When I’m at CA, the one that links to ES is automatically translated to CA, so you can’t really change the language of the page. (Only by typing /es in Google Chrome). I want that Qtranslate respectes my links and don’t change it automatically because then you can’t change the language.
How can I solve this?
I’ve trying to put this code to the funcitons.php but still doesn’t work
// Makes menu urls work with Qtranslate
function qtranslate_menu_item( $menu_item ) {
if (stripos($menu_item->url, get_site_url()) !== false){
$menu_item->url = qtrans_convertURL($menu_item->url);
}
return $menu_item;
}add_filter(‘wp_setup_nav_menu_item’, ‘qtranslate_menu_item’, 0);
/**************************************************/Thanks in advance!
- The topic ‘Qtranslate error custom link menu’ is closed to new replies.