Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #517169

    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

    #517975

    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

    #519700

    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”>' . $l['language_code'] . '‘ .$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

    #519816

    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

    #520679

    Hi Andy,

    That’s perfect, I’ll use this option.

    Thanks!

    Steffen

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Different menus per page – adding search icon/language selector’ is closed to new replies.