Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #524392

    Hello,

    I’m using One page portfolio template as a base for my site, but I have few Single pages, and on those pages I have use Zen Menu Logic plugin – https://wordpress.org/plugins/zen-menu-logic/ but I don’t see how to add ‘Search’ button on that custom menu, to have it like on my Home page?

    Thanks,
    Djuka

    #524562

    Hey bogosavljev!

    Can you please provide us a username / password so we can give it a look?

    Regards,
    Basilis

    #524568

    Hello,

    I have add link and login credentials in Private content.

    Thanks,
    Djuka

    #525340

    Hi!

    How can we login to the site? I tried the link above “db-login” but it redirects me to the coming soon page. The wp-admin and wp-login is not working either. Instead of the zen menu plugin, use this instead: https://wordpress.org/plugins/menu-items-visibility-control/

    Create only one menu which includes all menu items for all pages then use conditional functions to control the visibility of the menu items.

    Best regards,
    Ismael

    #525410

    Hello,

    please check WordPress admin link in Private section again, it’s working for me, but there is restricted time for access. There is forbidden access between 12am – 6am, so you can login after 6am until midnight.

    Go ahead and install that plugin and make example on one page.

    Thanks,
    Djuka

    #525749

    Hi,

    How to include search button in menu?
    Issue is when I’m on for example on Events page that menu gets sub page in URL.

    #527073

    Any chance to get answer or help on this question?

    Thanks,
    Djuka

    #528019

    Hi Djuka,

    Try putting the full URL instead of just the #anchor. Regarding including the search on mobile menu – https://kriesi.at/support/topic/mobile-search-bar/

    Cheers!
    Josue

    #528087

    Hi Josue,

    I see that you didn’t look into this problem in detail, so you write automated answer from your FAQ…

    Please check my site in detail. How to add search button in custom navigation menu? (I don’t need it for mobile)

    Thanks!
    Djuka

    #528156

    Where’s your custom menu on the site? i’m not seeing it here.

    #528193

    Main Menu is replaced with Zen Menu Logic plugin, and I need to add search button, which is missing. Check under Appearance -> Menus options

    Compare with this page: http://bogosavljev.com/homepage/home-v7-one-page-portfolio/

    #528196

    Try the following: open /functions-enfold.php, look for the avia_append_search_nav function and remove this conditional:

    	    if ((is_object($args) && $args->theme_location == 'avia') || (is_string($args) && $args = "fallback_menu"))
    	    {
                ....
                }
    

    Regards,
    Josue

    #529644

    Hello Josue,

    I want to ADD Search button, NOT to remove it. I want to have it like on this page – http://bogosavljev.com/homepage/home-v7-one-page-portfolio/

    Here is missing:
    http://bogosavljev.com/testimonials/

    Thanks,
    Djuka

    #530480

    Hi,

    Can you please create me a WordPress administrator account? the one you posted in the first post doesn’t seem to work.

    Regards,
    Josue

    #530643

    Hello Josue,

    Try this one.

    #531391

    Ok, i added the following code to your child theme functions.php:

    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(avia_get_option('header_position',  'header_top') != "header_top") return $items;
    	
    	        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;
    	}
    }
    

    That will override the parent avia_append_search_nav function and it will make sure to append the search icon to all menus regardless of location.

    Regards,
    Josue

    #531392

    OK, thanks!

    And on mobile search button is excluded right?

    #531927

    By default yes, there are some ways around it though.

    Regards,
    Josue

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