[Plugin: Qtranslate]
-
Hi,
After searching for three hours it’s time to ask you. I am using Qtranslate and as most of the users I have the problem that the chosen language changes back to default when you go to the homepage. For example: when you choose Dutch and go back to home, it will become English again.
I have searched and read many many many topics, but some I don’t understand and other solutions don’t work. I am using the theme Clean Response.
Website: https://tjoa.biz/imanage/
Somebody said to add:
add_filter( ‘wp_page_menu’, replace_home_link($menu) );
function replace_home_link( $menu ) {
$lang = qtrans_getLanguage();
$new_link = get_bloginfo(‘url’).’/’.$lang;
$home_link = get_bloginfo(‘url’).’/’;return str_replace(‘href=”‘. $home_link . ‘”‘,’href=”‘.$new_link.'”‘, $menu);
}
But that didn’t work.Oh and btw, does anyone know how I can put the flags on the right corner of the page? Now it’s in the ‘banner’ in the middle of the page.. Does not really look nice.
Hope someone of you can help me! Thank you ??
- The topic ‘[Plugin: Qtranslate]’ is closed to new replies.