-
AuthorPosts
-
April 3, 2017 at 2:11 am #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
April 3, 2017 at 8:21 am #770932Hey 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 TorvikApril 3, 2017 at 1:29 pm #771102HI
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,
GiorgioApril 3, 2017 at 1:50 pm #771108Hey!
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,
YigitApril 3, 2017 at 3:55 pm #771194It 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 youBest regards,
GiorgioApril 3, 2017 at 10:26 pm #771402April 4, 2017 at 8:34 am #771575Hi,
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.
April 6, 2017 at 11:06 am #773092Hi 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,
VictoriaApril 6, 2017 at 11:14 am #773099Hi, 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- This reply was modified 7 years, 7 months ago by giorgio_betagrafic.
April 7, 2017 at 8:11 pm #774162Hi 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 -
AuthorPosts
- You must be logged in to reply to this topic.