Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #194317

    Hi,

    On the site i’m currently developing (http://www.bataindustrials.co.za/) the searchfield from the menu magicly disappeared.. the tooltip with gets rendered somewhere on the bottom of the page but had no content.. and the magnifying glass is also invisble but the menu item is still there..

    Have you guys encoutered this before? or can you see what goes wrong?

    (btw.. we kinda styled the whole thing a little different from the original :-P )

    #194522

    Hi joax!

    There is some issue in the rendering of the search icon:

    Open functions-enfold.php and make sure line 52-73 look like this:

    if(!function_exists('avia_append_search_nav'))
    {
    	//first append search item to main menu
    	add_filter( 'wp_nav_menu_items', 'avia_append_search_nav', 10, 2 );
    	add_filter( 'avf_fallback_menu_items', 'avia_append_search_nav', 10, 2 );
    
    	function avia_append_search_nav ( $items, $args )
    	{	
    		if(avia_get_option('header_searchicon','header_searchicon') != "header_searchicon") return $items;
    	
    	    if ((is_object($args) && $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"><a href="?s=" data-avia-search-tooltip="'.$form.'" '.av_icon_string('search').'></a></li>';
    	    }
    	    return $items;
    	}
    }

    Regards,
    Josue

    #198614

    Hi, I am having the same problem. The search icon doesn’t open the search field or search page, when lelft clicking. When opening the link in separate banner the search field opens.

    The above code suggested only left the whole page below the header black.
    Regards
    Arild

    #198641

    Hey!


    @aspoy
    Can you post the link to your website so we can inspect elements?
    Cheers!
    Yigit

    #198643
    This reply has been marked as private.
    #198645

    Hey!

    It looks fine on my end. Please see screenshot here http://i.imgur.com/Qt4UvKL.jpg
    Can you post a screenshot of the issue you are having so we can make sure that we are on the same page?

    Cheers!
    Yigit

    #198658
    This reply has been marked as private.
    #198662
    This reply has been marked as private.
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Search field disappeared’ is closed to new replies.