Forums
Forums / Plugin: Polylang / Additional bilingual menu
(@tom2708)
12 years, 12 months ago
Hi,
I tried to set an addtional bilingual menu (german/english) in the footer as follows:
<?php pll_current_language($value); if ($value == "de-DE") { wp_nav_menu( array('menu' => 'Footer Menu' )); } else wp_nav_menu( array('menu' => 'Footer Menu E' )); ?>
It always shows the menu in the language after “else”, so I think the language detection does not work. Could you help please. Many thanks in advance
http://wordpress.org/plugins/polylang/
12 years, 11 months ago
EDIT: Could solve the problem by changing the 2nd line
<?php $value = get_bloginfo( 'language' ); if ($value == "de-DE") { wp_nav_menu( array('menu' => 'Footer Menu' )); } else wp_nav_menu( array('menu' => 'Footer Menu E' )); ?>
The topic ‘Additional bilingual menu’ is closed to new replies.