Home link goes to default language


Author Message
Adeptris

Posted: 2/26/2010
Quote message 

The menu is set in functions.php and the get_option('home') is in a function look for the line 'function art_print_homepage()'

and the get_option home code is within the code block

David
 
Adeptris

Posted: 2/26/2010
Quote message 

You have an earlier created version pre 2.4, where it is in the function:

art_menu_items()

Search for
. get_option('home') .

between the periods
. bloginfo('url') .

Replace both instances, if that does not work then :-(

David
 
Mrs.T.

Posted: 3/5/2010
Quote message 

:-)Hurray.....! I found the solution. For those using qTranslate plugin, this is what I did:

In functions.php, find this code under - function art_list_pages_filter($output)

if ($frontID)
$output = preg_replace('~<li class="([^"]*)\b(' . $pref . $frontID . ')\b([^"]*)"><a href="([^"]*)" ~',
'<li class="$1$2$3"><a href="'. get_option('home') .'" ', $output, 1);

and replace it with:

if ($frontID)
$output = preg_replace('~<li class="([^"]*)\b(' . $pref . $frontID . ')\b([^"]*)"><a href="([^"]*)" ~',
'<li class="$1$2$3"><a href="'. qtrans_convertURL(get_option('home')) .'" ', $output, 1);

Anyway, this is working like a charm for me and the Home link is now going to the right language.
 
marsviolet

Posted: 4/3/2010
Quote message 

But what if you are already committed to "xLanguage" plugin?

Does anybody have a solution for this?

I do not know much about writing PHP, but I can get with instructions.

thanks
 
Toomas

Posted: 11/10/2010
Quote message 

Same problem if you use WPML Wordpress 3.01 and Artisteer 2.5 gen theme. Then in navigation.php change in two places:

url: get_option

to

get_home_url()

And it works perfect.

P.S. I think in artisteer there are different costumer service peoples. Some gives good solutions and others not :)
 
John Smith

Posted: 11/3/2020
Quote message 

Hi, guys! I should say that it is awesome that now a lot of people can speak at least two languages! I work as a web developer. English is not my native language but I can easily make business with clients from all over the world! By the way, if you want to learn any new language or improve yours - I would truly recommend you to check out this list of top apps for language exchange https://preply.com/en/blog/language-exchange-app/!