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
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.
Hello,
Can you post a link?
Regards,
Ismael
Hello,
Sorry but it's an offline (intranet) version...
Best regards
Hi!
Try following - open up choices\config-wpml\config.php and delete following line:
$output .= " <span class='language_flag'><img title='".$lang['native_name']."' src='".$lang['country_flag_url']."' /></span>";
Regards,
Peter
Open up open up choices\config-wpml\config.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');
}Yeaaah! it works!
Thank you! you're the best!
Best regards
Hey!
Glad that I could help you :)
Regards,
Peter
You must log in to post.