Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #770829

    Hi, I have tried all the codes I found in the posts, but don’t works, I want add a “Search” field on Mobile. Can you help me please? Thank you

    #770932

    Hey giorgio_betagrafic,

    You can add the search box using this custom PHP code at your functions.php (in your child theme).

    
    add_filter( 'wp_nav_menu_items', 'avia_append_search_nav', 10, 2 );
    
    function avia_append_search_nav ( $items, $args )
    {
    
    		if ($args->theme_location == 'avia') {
    	        $search_form = get_search_form(false);
    			$items = '<li id="menu-item-searchbox">'.$search_form.'</li>' . $items;
        	}
    		return $items;
    }
    

    and add this custom CSS at Enfold Theme Options > General Styling > Quick CSS too:

    
    #menu-item-searchbox form div {
    display: block !important;
    opacity: 1 !important;
    width: auto !important;
    }
    
    #menu-item-searchbox form div #s {
        width: 300px !important;
        max-width: 300px;
    }
    
    #menu-item-searchbox {
    top: 25px;
    }
    
    #top #searchsubmit, .ajax_load {
        right: 0px;
    }
    

    Best regards,
    John Torvik

    #771102

    HI
    Thank you.
    I never used the “child theme”.
    Can I activate it now after I already made many changes to “Quick CSS” and “functions.php” on the Main Theme?

    Best regards,
    Giorgio

    #771108

    Hey!

    Yes, you can. You can download pre-built child theme here – http://kriesi.at/documentation/enfold/using-a-child-theme/ and move your codes in functions.php file from your parent theme to child theme and Quick CSS code into style.css file of child theme :)

    Regards,
    Yigit

    #771194

    It works for mobile devices. But now I have a “search” field on the desktop version and on Mobile.
    I just want an icon on the desktop version and, if it’s possible, just an Icon on Mobile.
    Thank you

    Best regards,
    Giorgio

    #771402

    Hi,

    Can you please post a link to your website?

    Best regards,
    Yigit

    #771575

    Hi,
    I would like a “search icon” on the mobile that is visible to the left of “cart icon” and not in the menu, instead on the desktop version will have to return the icon as a “default”. I write link in “private.

    Thanks.

    #773092

    Hi giorgio_betagrafic,

    The page is in maintenance mode, can you give us temporary admin access to your website in the private content box below, so that we can have a closer look or refer to this thread for a possible solution.

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #773099

    Hi, I left IT visible for 24 hours but since it is not complete yet, I then had to put it back ONLINE, now in visible again.
    I can’t leave it online for a long time.
    Thank you

    #774162

    Hi giorgio_betagrafic,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.
    • permission to deactivate plugins if necessary.

    Best regards,
    Victoria

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