Sharing is caring

Here is where we like to share our knowledge with you

Install plugin in website

Configure the settings

add this code to functions.php:

function languages_list_footer(){
$languages = icl_get_languages('skip_missing=0&orderby=code');
if(!empty($languages)){
echo '

‘;
}
}

add this code to style.css:

/* wpml footer */

#footer_language_list{
margin-bottom: 25px;
text-align: center;
}

#footer_language_list ul{
list-style: none;
margin:0;
padding:0;
}

#footer_language_list ul li img{
margin-right:5px;
}

#footer_language_list ul li{
display:inline;
margin:0 5px 0 5px;
padding:0;
}

#footer_language_list ul li a, #footer_language_list ul li a:visited{
color: #fff;
text-decoration:underline;
}

#footer_language_list ul li a:hover, #footer_language_list ul li a:active{
color: #fff;
}

We encountered problems when activating the display of Language Switcher in navigation due to how the website had the menu function for logged in users

Solution:

1- added new defaults of language switcher to menu  (defaults.php)

2- in WPML assigned the language switcher to a menu created with this default

2- changed if conditions from header.php

3- added call for language switcher