WPML supports only one widget since that is it possible to have the WPML language selector on the header i think in the sub menu instead of the social icons and the rss i got the code from their forum but no idea how to implement
Language selector with flags only
Simple function for displaying flags linked to the translations of the current page.
function language_selector_flags(){
$languages = icl_get_languages('skip_missing=0&orderby=code');
if(!empty($languages)){
foreach($languages as $l){
if(!$l['active']) echo '';
echo '';
if(!$l['active']) echo '';
}
}
}
The output of this function needs to be styled separately. For instance placing the function into a div block and defining custom styles for the img tags.
<div id="flags_language_selector"><?php language_selector_flags(); ?></div >
The CSS:
#flags_language_selector img{
margin:1px;
border:1px solid #333;
}














