Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1048794

    I have searched the forums but can’t find a solution; all solutions seem to lean towards going into the settings and checking the box to enable the search, but it is enabled. I tried unchecking then saving again, then checking it again and then re-saving, but nothing.
    The search icon is not being display in the main header menu (also not near or in the hamburger menu on mobile).

    I have changed .htaccess files but it is still not working.

    • This topic was modified 6 years, 7 months ago by blinde1980.
    #1048900

    I fixed it myselft, by changing the funtions-enfold.php. Due to the fact that we are using Zen Menu Logic the theme_location is not set to “avia” but the function is looking for this to add the search icon. So I have added this.

    function avia_append_search_nav ( $items, $args )
    {
    if(avia_get_option(‘header_searchicon’,’header_searchicon’) != “header_searchicon”) return $items;
    if(avia_get_option(‘header_position’, ‘header_top’) != “header_top”) return $items;

    if ((is_object($args) && $args->theme_location == ” or $args->theme_location == ‘avia’ ) || (is_string($args) && $args = “fallback_menu”))
    {
    global $avia_config;
    ob_start();
    get_search_form();
    $form = htmlspecialchars(ob_get_clean()) ;

    $items .= ‘<li id=”menu-item-search” class=”noMobile menu-item menu-item-search-dropdown menu-item-avia-special”>
    <span class=”avia_hidden_link_text”>’.__(‘Search’,’avia_framework’).'</span>
    ‘;
    }
    return $items;

    #1049128

    Hi,
    Thanks for sharing your solution, I’m sure others that may use the Zen Menu Logic will find this helpful.
    Unless there is anything else we can assist with on this issue, shall we close this then?

    Best regards,
    Mike

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.