Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #13906

    Hi again,

    I hope it will be my last question for Choices :o)

    How can I remove the two WPML language flags in the header? and replace by “English | Français” text?

    Thank you

    #81175

    Hi!

    As far as I know WPML offers an option which allows you to change the language switcher layout. Go to WPML > Languages and click on the “Language switcher options” tab.

    Regards,

    Peter

    #81176

    Hi,

    Yes I know and changing the layout from WPML admin panel work fine for the language switcher in footer, menu, sidebar etc. But the layout in header doesn’t change. I can’t remove it or change it. I try to replace flags by “English | Français” text, but there is no influence in header.

    Thank you.

    #81177

    Hello,

    Can you post a link?

    Regards,

    Ismael

    #81178

    Hello,

    Sorry but it’s an offline (intranet) version…

    Best regards

    #81181

    Hi!

    Try following – open up choicesconfig-wpmlconfig.php and delete following line:

    $output .= "	<span class='language_flag'><img title='".$lang['native_name']."' src='".$lang['country_flag_url']."' /></span>";

    Regards,

    Peter

    #81182

    Hi,

    Ok, flags are deleted with this. But I can’t find how to replace flags by wpml language switcher… the header doesn’t work correctly with the WPML language switcher options..

    Best regards.

    Jul

    #81183

    Open up open up choicesconfig-wpmlconfig.php and try to replace:

    if(is_array($languages))
    {
    $output .= "<ul class='avia_wpml_language_switch'>";

    foreach($languages as $lang)
    {

    $output .= "<li class='language_".$lang['language_code']."'><a href='".$lang['url']."'>";
    $output .= " <span class='language_flag'><img title='".$lang['native_name']."' src='".$lang['country_flag_url']."' /></span>";
    $output .= " <span class='language_native'>".$lang['native_name']."</span>";
    $output .= " <span class='language_translated'>".$lang['translated_name']."</span>";
    $output .= " <span class='language_code'>".$lang['language_code']."</span>";
    $output .= "</a></li>";
    }

    $output .= "</ul>";
    }

    with:

    if(is_array($languages))
    {
    do_action('icl_language_selector');
    }

    #81184

    Yeaaah! it works!

    Thank you! you’re the best!

    Best regards

    #81185

    Hey!

    Glad that I could help you :)

    Regards,

    Peter

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘WPML flags…’ is closed to new replies.