-
AuthorPosts
-
April 3, 2017 at 6:33 pm #771263
Hi,
See my private link,
the search works great on mobile, but now it is also on the desktop
April 3, 2017 at 6:35 pm #771268Hey BPC,
What is the exact issue you are having?
Best regards,
Jordan ShannonApril 3, 2017 at 6:36 pm #771270See screenshot, open a link on the mobile and the search will be on screen.
April 3, 2017 at 8:38 pm #771312Hi,
You want the search field removed from desktop?
Best regards,
Jordan ShannonApril 3, 2017 at 8:48 pm #771320you have seen the screenshot ?
i want the desktop it was before, the searchbutton on the right
and on the mobile the search in the menuApril 3, 2017 at 9:40 pm #771348Hi,
I added the following to quick css and it seems to have fixed the problem:
#menu-item-searchbox { top: 0px!important; } #menu-item-searchbox.dropdown_ul_available{ float:right!important; } .responsive .container { max-width: 1510px!important; }
Let me know if this works for you
Best regards,
Jordan ShannonApril 3, 2017 at 9:42 pm #771351No now it is on the right side and breaking everything.
I just need the normal search icon on the desktop and a search on the mobile
April 3, 2017 at 9:48 pm #771354Hi,
Apologies, I am not understanding what you need. I am not seeing anything broken, so please if you can try and explain a little clearer I will try my best to help.
Best regards,
Jordan ShannonApril 3, 2017 at 9:50 pm #771357Hi,
The site appeared broken before I made the updates not after so I am just not understanding.
Best regards,
Jordan ShannonApril 3, 2017 at 9:50 pm #771358see screenshot, and the link
April 3, 2017 at 9:52 pm #771363Ok,
i used this for functions.php
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.’‘ . $items;
}
return $items;
}and this for css
#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;
}April 3, 2017 at 9:54 pm #771366Hi,
Ok I see. So the above code has fixed your issue?
Best regards,
Jordan ShannonApril 3, 2017 at 9:55 pm #771367no that i used to get the search on the mobile.
now i removed it and it is ok again.But i need the search function also on mobile.
April 6, 2017 at 6:20 pm #773378Hi BPC,
Please refer to this thread for a possible solution of adding search to mobile.
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.