This topic has 3 replies, 4 voices, and was last updated 10 years by Splendor.

  • Author
  • #32532
     kschuster
    Participant

    Seems the ajax search in the top menu is either on or off. Is there a way to show it depending on being logged in vs logged out?

    #32537
     sharmstr
    Moderator

    Try this in your childs functions.php file.

    COPY CODE
    
    function kleo_search_menu_item ( $items, $args )
    {
    if ($args->theme_location == 'primary')
    	{
    		$form = kleo_get_search_menu_item();
    		if (is_user_logged_in()) {
    			$items .= '<li id="nav-menu-item-search" class="menu-item kleo-search-nav test">'.$form.'</li>';
    		}
    	}
    	return $items;
    }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #33182
     Abe
    Keymaster

    Good idea. Thank you. Added as an option in Theme options for next theme version

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #33294
     Splendor
    Participant

    Nice, I was looking into that a my main menu is only available for logged in users..

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?