This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Our next available supporter will start replying to tickets in about 6.54 hours from now. Thank you for your understanding.

This topic contains 19 replies, has 2 voices.

Last updated by Andreas Neuber 5 years, 11 months ago.

Assigned support staff: Andreas Neuber.

Author Posts
December 18, 2013 at 11:06 am #310211

Vitaliy

Hi.
I have one question, I can't change order of list languages.
When I choose my custom order, it shows correct only in the footer, but on the header It shows wrong order. If I choose vertical list it would show correct both in header and footer, but If I choose horizontal it show wrong order on the header.

Here is the site to see: hidden link

December 18, 2013 at 12:36 pm #310278

Andreas Neuber
Supporter

Languages: English (English ) German (Deutsch )

Hello Vitaly,

True, the sequence is exactly the other way around as in the footer.

Would you mind providing us with credentials for your website and we have a closer look at the settings? For this purpose you should see a protected webform all they way down here in this thread. (it asks first for "Backup + Legal disclaimer")
Thanks in advance!

December 18, 2013 at 12:47 pm #310292

Vitaliy

Ok

December 19, 2013 at 7:38 am #310685

Andreas Neuber
Supporter

Languages: English (English ) German (Deutsch )

Hello Vitaly,

Thanks a lot! I'm having a look at the moment, hope I can tell you soon more..

December 19, 2013 at 3:53 pm #311055

Andreas Neuber
Supporter

Languages: English (English ) German (Deutsch )

Hi Vitaly,

Examined your backend settings and compared them with my own test installation.
Looks quite like a bug to me 😐

The expected behavior is that the order of "Параметры переключателя языка" -> Очередность языков is taken over by all WPML standard switchers, but that is not the case.
I will also involve our developers now for further feedback.

Sorry that I can't give you any better news here..

March 7, 2014 at 1:37 pm #354409

Vitaliy

Hi.
I'd like to ask you about my issue. You wrote this:

"...I will also involve our developers now for further feedback.
Sorry that I can't give you any better news here...

Maybe you already have some suggestion.
Thank you.

March 10, 2014 at 12:26 pm #355734

Andreas Neuber
Supporter

Languages: English (English ) German (Deutsch )

Hello Vitaly,

Sorry for the delay!
I see you've updated to WPML 3.1.4 which is good. We lately fixed a bug with our language switcher.

Since we can't login at the moment (server error 500) - the switcher appearing on the right upper corner of your site, was it added by..
> a widget
> PHP code in theme file: do_action('icl_language_switcher');
> a menu
?

April 4, 2014 at 7:08 pm #374346

Vitaliy

Hi.
I was out of working on this site for a while.
Now I'm back and still try to fix it.
I've fixed (server error 500) and you can

Yes, I've put <div class="lang_sel"><?php do_action('icl_language_selector'); ?></div> to header file.

April 7, 2014 at 9:32 am #375085

Andreas Neuber
Supporter

Languages: English (English ) German (Deutsch )

Thanks! I will have look now..

April 8, 2014 at 4:21 am #375729

Andreas Neuber
Supporter

Languages: English (English ) German (Deutsch )

Hello Vitaly,

Did your WP login URL change by any chance?

April 11, 2014 at 11:50 am #378798

Vitaliy

I'm so sorry.
I don't understand, what's happen with this URL. I think it my security plugin.
I've just made change and double checked. It seems that it is now working.

Thank you.
Vitaliy

April 11, 2014 at 2:29 pm #378908

Vitaliy

Hi. I have this kind of problem in different websites also. For example hidden link
Maybe because I put this code into function.php

function language_selector(){
$languages = icl_get_languages('skip_missing=0&orderby=code');
if(!empty($languages)){
$count=0;
foreach($languages as $l){
$count++;
if($count==3)
{
$pipe = '';
}
else
{
$pipe = ' | ';
}
if(!$l['active']) echo '<a href="'.$l['url'].'">';
echo ''.$l['native_name'].$pipe;
if(!$l['active']) echo '</a>';
}
}
}

April 14, 2014 at 10:14 am #380070

Andreas Neuber
Supporter

Languages: English (English ) German (Deutsch )

Hello Vitaly,

Thanks, works fine now.

Just to be sure - you are using for the switcher top right corner..
A) http://wpml.org/forums/topic/change-order/#post-374346
or
B) http://wpml.org/forums/topic/change-order/#post-378908

Hope its B) because that is easier to fix.. 🙂

April 14, 2014 at 11:05 am #380120

Vitaliy

Hi.
I'm not sure I've understood your question.

I've put this to header.php

<div class="lang_sel"><?php do_action('icl_language_selector'); ?></div>

and put this to function.php

function language_selector(){
$languages = icl_get_languages('skip_missing=0&orderby=code');
if(!empty($languages)){
$count=0;
foreach($languages as $l){
$count++;
if($count==3)
{
$pipe = '';
}
else
{
$pipe = ' | ';
}
if(!$l['active']) echo '<a href="'.$l['url'].'">';
echo ''.$l['native_name'].$pipe;
if(!$l['active']) echo '</a>';
}
}
}

April 15, 2014 at 8:15 am #380786

Andreas Neuber
Supporter

Languages: English (English ) German (Deutsch )

Hello Vitaly,

The function in your functions.php has a different name -> language_selector

To call it in the header you would need..
<div class="lang_sel"><?php icl_language_selector(); ?></div>

Shall we adjust it like this and I will help you there then with the order?

The topic ‘[Closed] Change order’ is closed to new replies.