Forums › Forums › Search & Filter Pro › Empty search result
- This topic has 3 replies, 2 voices, and was last updated 10 years, 2 months ago by Ross.
-
Anonymous(Private) August 28, 2014 at 9:26 pm #4083
Hello again,
If the search returns a zero response, the page comes up empty.
I am using the Avada theme, and I think you already answered this for another client, but the paste bin you supplied him is no longer there, hopefully you have a copy of it. This was the support thread
https://support.searchandfilter.com/forums/topic/empty-search-result/
Failing that, is there anyway of hiding choices that are not available. Example I have a list of categories and a list of tags, if I select something from the category list and it has no results in Tags A B D can they be blocked out?
God I hope this makes sense. I have my form set up on this page if it makes more sense.
http://www.2dragons-playground.net/demo-two/search-by-party-size/
Again, thank you for your help, the client is thrilled she finally has a search function like this, she has waited 2 years and spent a fair amount of cash, all to no avail, until now ๐
Ross Moderator(Private) September 1, 2014 at 9:32 am #4166Hey there, I will get back to you later on tonight
Anonymous(Private) September 2, 2014 at 11:55 pm #4216Problem solved, I got it doing what I need.
You will be pleased to here the site will be going live shortly so I wont be dropping in with my various demands.
if however you feel like sharing the css marker for the form fields so I can make them look a little prettier, I would be grateful. I have Web Developer installed, but it doesn’t seem to be able to pick out the classes.
As always, thank you. Once you cough up the classes, you can mark this as solved ๐
Ross Moderator(Private) September 4, 2014 at 1:56 pm #4278Glad you got it working!
The CSS is quite simple, but you will really need to be able to inspect the DOM, no idea why you cant but I suggest taking a look at the generated classes/code via the DOM inspector in either Chrome of Firefox – both these seen to work fine for me!
I’ll try to quickly outline the CSS for you anyway though ๐ Here are some example classes etc:
/* this affects the main form */ form.searchandfilter { border:5px solid black; } /* every item in the form is in an LI so this will affect all of them */ form.searchandfilter > ul > li { border:1px solid #f00; } /* then all fields have a class which is specific to their name - so you need the inspector for your particular fields */ /* this targets a category LI container if you have one */ form.searchandfilter > ul > li.sf-field-category { border:1px solid #0f0; background-color: #ccc; } /* then this would specifically target the SELECT dropdown for category (if that is what you were using) */ form.searchandfilter > ul > li.sf-field-category select { border:1px solid #0f0; } /* To target all form fields do something like any of the following: */ /* targets all the select dropdowns: */ form.searchandfilter select { border:1px solid #0f0; } /* targets all input fields: */ form.searchandfilter input[type=text] { border:1px solid #00f; } /* targets all radio inputs: */ form.searchandfilter input[type=radio] { border:1px solid #00f; } /* targets the submit button: */ form.searchandfilter .sf-field-submit input { border:1px solid #0f0; }
Basically the form is a big unordered list – and every field in in a list item element (
<li>
), then each<li>
has a class, with a prefix followed by the type and name of the field so this really dependent on how you have your form setup ๐Hope that helps!
-
AuthorPosts