Si necesitamos personalizar el estilo del desplegable de idiomas podemos utilizar este código. Lo añadiremos manualmente en el template (header.php).

<div>
<?php
$languages = icl_get_languages(‘skip_missing=0&orderby=code&order=asc&link_empty_to=’);
$totLang = count($languages);
if ($languages):
$counterLang = ”;
foreach($languages as $key => $lang):
$counterLang++;
$active = ($lang[‘language_code’] == ICL_LANGUAGE_CODE ) ? ” : ”;
if ($counterLang == $totLang):
echo ‘<a ‘.$active.’ href=”‘.$lang[‘url’].'”>’.$lang[‘native_name’].'</a>’;
else:
echo ‘<a ‘.$active.’ href=”‘.$lang[‘url’].'”>’.$lang[‘native_name’].'</a> / ‘;
endif;
endforeach;
endif;
?>
</div> <!– lang_selector –>