Adeptris
|
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
|
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.
|
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
|
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
|
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
|
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/!
|
|