Change the CSS you used to make it horizontal to this:
@media only screen and (min-width: 815px) {
.searchandfilter > ul > li {
display: inline-block;
vertical-align: top;
padding: 0px 40px 0px 0px;
}
}
AnonymousInactive
Hi, I’m using the horizontal filters. They’re looking great on the desktop, but when they’re stacked on top of each other on mobile they’re to close to each other. Is it possible to give the first column some margin on the bottom, say 25px, but only on mobile?
Best regards, Haiko.
AnonymousInactive
Hello Trevor.
I would like to explain more what exactly I need and I hope you will help me how to set this plugin to achieve this result.
https://www.dropbox.com/s/gjr5foo2hbb6yhm/Screen%20Shot%202020-08-28%20at%202.21.28%20PM.png?dl=0
I hope it will open this photo. The idea is to have 3 different horizontal drop down filters.
First will be different services. I believe I will use Categories there.
Second will be different languages. I think I need to use tags there.
Third will be different cities. I don’t know what shall I use there. After reading your documentation, I figured out that the best way is to use taxonomy, but maybe you can suggest something else.
If to use taxonomy, I need a help to create that taxonomy. s I mentioned in the previous message, I tried to use a plugin suggested, but it was slowing down my website, so I decided to modify my theme and create that taxonomy there.
Can you help me to have that code which will include those cities I mentioned in the previous message?
Thank you so much for your help,
Yulianna
You have the menu inside a vertical sidebar, it cannot be horizontal in there, there is not enough space/width. You would need to remove the sidebar and place the form above the results in the main content area of your page.
AnonymousInactive
Hello There,
I wanted to know how to display filter form horizontally instead of vertically ?
https://prnt.sc/u7lzh0
Regards.
Does it now look as you want?
The horizontal CSS is changed to this:
.searchandfilter > ul {
margin-left: 0;
display: flex;
}
.searchandfilter > ul > li {
padding: 0px 40px 0px 0px;
}
.searchandfilter > ul > li.sf-field-submit {
align-self: flex-end;
}
.searchandfilter > ul > li.sf-field-submit input {
justify-content: flex-end;
}
AnonymousInactive
Nevermind. I found what I needed at https://support.searchandfilter.com/forums/topic/how-to-make-checkbox-arranged-horizontally/
.searchandfilter ul {
padding-left: 0;
}
.searchandfilter > ul > li[data-sf-field-input-type="radio"] > ul > li {
display: inline-block;
margin-right: 20px;
}
AnonymousInactive
Hello!
I’m using the radio buttons to filter post categories. You can see the live page here: https://forpurpose.com/purpose-in-action/
I’m using custom CSS to make the radio buttons look like buttons. I’m having a hard time making them have a horizontal layout. I’ve tried using FLEX on the .searchandfilter > ul but it doesn’t seem to help. Any help would be appreciated! Thanks!
In the mobile version, the filters will need to be vertically arranged, not horizontal.
I can see that your theme has a CSS rule that uses flexbox to make them horizontal. At some point you need to set the content into a column. Use this custom CSS maybe:
.fusion-content-widget-area .widget .searchandfilter select.sf-input-select,
.fusion-content-widget-area .widget .searchandfilter label {
width: inherit;
}
.fusion-content-widget-area .widget .searchandfilter > ul > li {
min-width: 200px;
margin-right: 20px;
}
@media only screen and (max-width: 991px) {
.fusion-content-widget-area .widget .searchandfilter > ul {
flex-direction: column;
}
.fusion-content-widget-area .widget .searchandfilter > ul > li {
margin-right: 0;
margin-bottom: 20px;
}
.fusion-content-widget-area .widget .searchandfilter .search-filter-reset {
margin: 0;
}
}
AnonymousInactive
The cooperation with Divi is very good.
The horizontal display of the form only works with the free version, but not with the pro-version. Therefore I have now changed the whole design:
https://www.veggie-treff.de/vegane-rezepte/
Missing language files are not good in the long run. Especially with a paid version this should be standard.
A copy for individual editing of “results.php” is nice, but also dangerous. So I have to check after each update if I have to make adjustments.
Scary is the old version (3 months) and only tested until WordPress 4.9.
When can I expect a current Pro version, which is at least tested with WordPress 5.4.2 and 5.5?