Looking for support? You can access the support system via your account.
- This topic has 7 replies, 2 voices, and was last updated 9 years, 6 months ago by .
You must be logged in to reply to this topic.
Looking for support? You can access the support system via your account.
Forums › Forums › Search & Filter Pro › Custom Search
I need some help with the following, this is for a website related to rental house listings.
1. How do you customize the look and feel of the Search widget’s appearance? For example, to have the drop-down for Bedrooms on the right side of the label instead of below the label.
2. I want to allow people to search by rent amounts up to a certain amount per week, e.g. up to $400 per week, up to $500 per week etc.
Thanks
One other question, in my custom fields, I have one for “Active” and “Inactive”. How do we get the search to only display rental houses with the “Active” data? Thanks.
Hey onlinedude
1) Search & filter provides very little styling so that you (and theme developers) can do this yourself – so you need to be familiar with CSS… If you are happy to add styling via css then my recommendation would be to add your styles to the “style.css” in your theme…
Then you can target the Search & Filter form quite easily:
.searchandfilter li
{
background-color:#f00;
}
Also if you inspect the HTML generated, nearly all fields are wrapped in a class that is related to the field name – ie = .sf-category
if you had a category field in there…
2) Unfortunately the plugin does not allow for “upto $500” for example – I hope to add this in the future.
If your data is stored as post meta, then you would select a post meta
field, and choose a number range option – then your users can do a search with a from - to
range.
RE your last question, there is no way to set defaults at the moment, but there maybe a workaround, let me think and I’ll come back to you – basically you will need to hook in to pre_get_posts
and modify the query yourself..
Hi Ross, thanks for your reply. I’m using the range option for the rent and bedrooms. Regarding my 2nd question, I have houses with taxonomy of Status = Active or Archived. Would be great in your enhancements to include an easy way to add conditions, e.g. show records except when Status = Archived for example.
Thanks
Thanks for the suggestions onlinedude, its in progress 😉
PS didn’t get a chance to look at the query for you yet but will get back once I get a chance to do some testing..
Hey onlinedude, including/excluding has been added as a feature in the latest update
Thanks
You must be logged in to reply to this topic.
© 2024 Search & Filter Support. All Rights Reserved.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
We also use cookies to store items in your cart as well as allowing your to login on the site.
You can adjust all of your cookie settings by navigating the tabs on the left hand side.
By continuing to use this site, you also agree to our Privacy Policy.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy