Hi there,
I use different header menus for different pages with the help of Zen menu logic. I also use WPML for the page translations and WooCommerce for the shop.
Now on my homepage I see all the menu items correctly (including search icon and language selector). When I go on “Your Music.” those two disappear. I guess it’s because only the Enfold Main Menu displays them.
How can I add the search and language icons to the other menus?
Thanks and all the best,
Steffen
Hey entspannt!
what happens when you deactivate ZEN menu logic plugin? does the same issue happen for you? I think I would ask zen support in your case, as they know their plugin best.
Regards,
Andy
The main question currently is: Is it possible to include the search icon to more than one nav menu? The option in the Enfold configuration allows only to display it in the main menu.
I found a solution for the WPML language switcher. I added this code to Enfold Child: Theme Functions (functions.php)
function fixed_nav_menu_items($items) {
if (function_exists(‘icl_get_languages’)) {
$languages = icl_get_languages(‘skip_missing=0’);
if (!empty($languages)) {
foreach ($languages as $l) {
if(!$l[‘active’]) $items = ‘<li class=”menu-item custom-switcher”>‘ .$items;
}
}
}
return $items;
}
add_filter(‘wp_nav_menu_items’, ‘fixed_nav_menu_items’);
Is there something similar for the search function?
All the best,
Steffen
Hey!
have a look at this for another search icon: https://kriesi.at/support/topic/insert-the-enfold-serach-engine-in-a-post/#post-498359
Regards,
Andy
Hi Andy,
That’s perfect, I’ll use this option.
Thanks!
Steffen