Hi Philip. Share with us if you have any update. Good luck.
Thread Starter
ooobe
(@ooobe)
No it’s not, or maybe Im not sure 🙂
Could you alter the code so to show it there, here is the code:
function new_nav_menu_items($items,$args) {
if (function_exists('icl_get_languages')) {
$languages = icl_get_languages('skip_missing=0');
if(1 < count($languages)){
foreach($languages as $l){
if(!$l['active']){
$items = $items.'<li class="menu-item"><a href="'.$l['url'].'"> '.$l['native_name'].'</a>';
}
}
}
}
return $items;
}
add_filter( 'wp_nav_menu_items', 'new_nav_menu_items',10,2 );
Thread Starter
ooobe
(@ooobe)
I fixed 1 and 2.
3. I changed it by the original CSS because it’s always override the css of child theme. that’s why I’m asking if we can change it by the child theme.
Thanks