The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
Forums › Forums › Search & Filter Pro › Custom search filter
Tagged: custom search
Hi! I want to customize the search filter into 3 columns.
Is there a way to do that?
Actually, I use shortcode and I can’t find way to get what I want.
Thanks!
Bonjour François
You want the results in 3 columns?
Using the shortcode method you can modify the results.php template to your needs. You must first make a copy in your theme folder:
If you have an example from your theme of an archives page that looks the same?
Thanks for your fast answer,
I already customize my results (works like a charm)
But now I have to customize the search field in 3 columns.
Thanks
Not sure I’m understanding, but each field is wrapped in a list item (<li>
tag) so you can use those to set up your columns via CSS.
Something like
.searchandfilter > ul > li {
float: left;
display: block;
width: 33.33%;
}
May get you started.
Only in the search option,
I want the calendar (date post) in first column,
some post meta in second one
and the reset and submit button in the third one.
Right now it all show in a same ul li…
Maybe can I built a custom form by only call each search fields separately?
Thanks
Bonjour François
Can you show me the actual page with the search form on?
And a mock up (image) of what you want it to look like (maybe using Photoshop)?
Ah, now I see what you want. Not very easy. You have 8 controls of different heights. It is possible to make them go in 3 columns across the page, but it may not look so nice.
The first thing to fix is to have the radio buttons next to the labels of the event_options. This custom css should do that:
.sf-field-post-meta-event_options label {display: inline !important;}
Then make them all about the same width:
.searchandfilter > ul > li {
width: 33% !important;
padding-left: 10px;
padding-right: 10px;
float: left;
}
.sf-field-post-meta-event_options input {width: auto !important;}
.searchandfilter ul {width: 100%;}
.searchandfilter ul > li input, .searchandfilter ul > li select {
width: 100%;
}
.searchandfilter .meta-slider {max-width: 100% !important;}
Thanks!
On my side I prefer to keep the order 😉
.searchandfilter > ul {
-webkit-column-count: 3;
-moz-column-count: 3;
column-count: 3;
}
Very nice plugin!
The topic ‘Custom search filter’ is closed to new replies.
© 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