Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #769267

    Hi I’m trying to get the same search function with the search icon in my header left sidebar. But I can’t select the function in the enfold settings. Can you guys help me?

    Thanks!

    #769322

    Hey Abosict,

    Just go to your Dashboard > Enfold theme options > Header > Header Extra Elements and check this option: http://prntscr.com/eq73dq

    Best regards,
    John Torvik

    #769420

    Hi. I can’t use that option bevause I have my main menu as a sidebar.

    #770504

    Hi,

    Could you post a link to the site in question so that we can take a closer look please?

    Best regards,
    Rikard

    #770650

    Here you go

    #770692

    Hey!

    I do not think there is a way to add the search in that view as it has more CSS and options that work on the main header I am afraid

    Cheers!
    Basilis

    #770697

    Thanks for your answer @Basilis, but I really do think there is a way, because the shopping cart option is also working. The shoppingcart option basically has the same css and options as the search function. Maybe one of your colleagues knows how to do this.

    I would appreciate it highly!

    #772268

    Hi,

    Thank you for the update. Please add this code in the functions.php file:

    /**
     * Add search toggle on left sidebar header layout
     */
    add_filter( 'wp_nav_menu_items', 'avia_append_search_side_nav', 10, 2 );
    function avia_append_search_side_nav( $items, $args )
    {
    	if (is_object($args) && $args->theme_location == 'avia')
    	{
    		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=" rel="nofollow" data-avia-search-tooltip="'.$form.'" '.av_icon_string('search').'><span class="avia_hidden_link_text">'.__('Search','avia_framework').'</span></a>
    				   </li>';
    	}
    	return $items;
    }

    You should see the search icon below the menu items. Please use the Quick CSS field to move the position of the icon.

    Best regards,
    Ismael

    #772934

    Works like a charm!

    Used those css codes to fix it:

    .header_color .avia-tt {
        left: 50% !important;
    }
    .avia-search-tooltip .avia-arrow-wrap {
        left: 20px;
    }
    #772992

    Hi,

    Let us know if you have any other questions or issues :)

    Best regards,
    John Torvik

    #1046898

    I can not believe that the feature has not been added in updates since. :(

    #1047089

    Hi,

    Not many users are looking for this functionality, so it’s still not in the core. In case you missed it, there’s a new element in the builder called “Search”. Maybe, you can insert that in your pages and display it mobile view only.

    Best regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Search function in header left sidebar’ is closed to new replies.