Forum Replies Created
-
AuthorPosts
-
atomheartBLACKParticipant
Hi,
Here is the URL: http://www.gobbler.co.nz
I would like 2 different search groups, LOCATION and DAY.
Each category would have a drop down box where you would be able to select one, or several choices e.g I want to choose a specific LOCATION, lets say an inner city suburb, then choose a DAY, lets pick Monday and Tuesday. After making these selections, the deals that are shown will only be INNER CITY LOCATION, with MONDAY and TUESDAY as the days.
I have set up Day search, but when clicking on the drop down box, all the days are automatically selected. How can I set it that none are selected by default?
When selecting a day, nothing happens, it does not show that specific day’s deal.
When doing a search e.g MONDAY, a weird box pops up. I just want to actually use a dropdown function for visitors to use. Select a specific day (or multiple days) and a location (or multiple locations) the only those deals would show up on the home page. Is there a way to achieve this, and maybe only having a dropdown box without a search box function?
I hope this makes sense 🙂 Have been looking at the Ajax search pro settings, but can’t figure it out.
Thank you!
- This reply was modified 8 years, 12 months ago by atomheartBLACK.
atomheartBLACKParticipantNo worries. Have decided to not use the search in the Nav bar, but rather in the body.
Thanks for all your help anyways 🙂
Cheers
atomheartBLACKParticipantThank you! It worked.
The only thing is the search bar doesn’t function correctly. The drop down menu pops up at will and the search results does not work either, can’t search anything on the website. There is also a second scroll bar that appears on the opposite corner of the website.
Any idea why?
Thank you
atomheartBLACKParticipantHi there,
Thanks for the reply!
Here is the code I used in the functions.php:
[code]add_filter(‘wp_nav_menu_items’,’x_add_search_to_navbar’,10,2);
function x_add_search_to_navbar( $items_html, $args ) {
//If menu class has x-nav, but this isnt the footer
if ( isset($args->menu_class) && strpos($args->menu_class, ‘x-nav’) !== false &&
( ! ( isset($args->theme_location) && ‘footer’ == $args->theme_location ) ) ) {ob_start();
get_search_form();
$items_html .= ‘<li>’ . ob_get_clean() . ‘</li>’;
}
return $items_html;
}[/code]I am not too sure where to place the .php shortcode for the AJAX search.
Can you please help
Thanks
atomheartBLACKParticipantThank you! I’m such an idiot.
No more help required
Cheers
atomheartBLACKParticipantOne more thing. I have set the icon color to white, but it does not appear on the search bar. How do I get that back? I have gone through all your theme options, and none have the icon dropdown.
Thanks
atomheartBLACKParticipantOh, thank you 🙂
-
AuthorPosts