Can't get language switcher menu to work on my mobile theme

Posted in: Newspaper
Post count: 8

I had a language switcher on my mobile theme on a previous version of Newspaper, but after I updated it to 7, it displays on the Desktop version menu, but not on the mobile version, if the mobile plugin is enabled. How can I get it to work with the mobile plugin? Thank you!

Here’s the code I used:
<div class="td-icon-lang menumobile">
<?php
$languages = icl_get_languages('skip_missing=0&orderby=code');
$html .= '';
if(!empty($languages)){
foreach($languages as $l){
// if(!$l['active']) $html .= '';
if(!$l['active']) $html .= '
'.$l['language_code'].'';
// if(!$l['active']) $html .= '';
}
}
echo $html;
?>
</div>
</div>

Post count: 6535
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.