Forum Replies Created

Viewing 2 posts - 33,331 through 33,332 (of 33,332 total)
  • Author
    Posts
  • in reply to: Search Form on mobile devices #748879

    Hey Alexander,
    If you want a search bar inside the mobile menu, add this in the functions.php file:

    add_filter( 'wp_nav_menu_items', 'avf_add_search', 3, 2 );
    function avf_add_search( $items, $args ) {
    	if ($args->theme_location == 'avia')
    	{
    		$search = '<li id="menu-item-search-mobile" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-18 current_page_item menu-item-top-level menu-item-top-level-5">'.get_search_form(false).'</li>';
    		$items = $search . $items;
    	}
    	return $items;
    }

    After that, use this code in the Quick CSS field:

    @media only screen and (max-width: 767px) {
    	#top #searchform>div {
    		display: block !important;
    		opacity: 1 !important;	
    	}
    }

    Best regards,
    Mike

    in reply to: Problem with wenu on smartphones #748859

    Hey TimoUrban,

    Please try this solulion, go to your custom menu item “Portfolio” and put a “#” in the URL box. This will allow the menu to open and show sub-menu items on user touch (click).

    Best regards,
    Mike

Viewing 2 posts - 33,331 through 33,332 (of 33,332 total)