AnonymousInactive
Hi Trevor,
Thanks so much for your detailed reply!
I added the code to make it horizontal and it looks almost perfect… But the submit button is aligned to the headlines instead of the boxes and it looks a bit off… It’d be also nice to have ability to have it vertical, too…
>Do you still need 3 forms based on the same Post Type?
So, I don’t quite understand what it means to “use same post type”… How can I make it with different post types? If I use different post types, it works without you adding things?
They are all like archive pages of posts but uses different categories. “Using same post type” means they are all coming from POSTS tab? If so they ARE all coming from the POSTS tab… What would be my option to use different post types?
I thought that if I make an independent posts group apart from the ones POSTS tab, maybe it wouldn’t be “using same post type”, so I downloaded Custom Post Type UI plugin and made an independent post tab, and tried again, but it seems like Elementor doesn’t recognize the posts in the new post tab so I couldn’t make it work.
I cannot code and I am a beginner, so I want to keep it as simple as possible. If you make changes to my search forms, will I be able to make changes later on?
Thanks so much!
AnonymousInactive
Hello,
1. I purchased the pro version and it was almost working but it showed me this error that says I use 2 search forms using “posts” as post type but can only use 1. One of the search form stopped working, so I used “blocks” as post type instead, for the second search form. Now both search forms are actually working but it gives me an error; “has_archive” must be enabled.
Can I just ignore the error because they both are working? Or how can I fix this error? I just started using WP and I cannot code…
But I actually have 1 more page that needs a search form. If I can’t use “post” and “blocks” what else can I use now? They will all be used on archive page of posts, separated into different categories.
https://creatorscycle.com/category/creators-life/
https://creatorscycle.com/category/basic-life-for-creators/
2. Can I make a horizontal search? Like, every search form UI to be next to each other horizontally? The non-pro version was horizontal so I really liked how it looked but the pro version is laid out vertically. How can I fix this?
3. Can I use multiple filters to search? For example, someone can put “museum” in the search box and then apply location filter as “New York” and then apply “photography” tag filter, too? Is it something this plugin can do? For the above 2 pages, I think what I need to do is pretty simple, but the 3rd search form is a bit complicated because it needs multiple filters.
Thanks!
AnonymousInactive
Hi, everybody.
I was wondering if you could help me out with some CSS tricks to get this.
I have put the S&F pro shortchode in horizontal as indicated in the documentation. With this CSS:
.searchandfilter[data-sf-form-id=”1428″] > ul > li {
display: inline-block;
vertical-align: top;
padding: 0 20px;
}
But, my search engine has several fields, and sometimes it falls on a second line. This second line is always aligned to the left, and I would like to put it in the middle.
I’ve made a masterpiece of art with Paint that I think is better explained. https://ibb.co/mRWTB01
I don’t know much about CSS, and it’s probably very easy, but I haven’t managed to do it.
Thanks in advance!
Translated with http://www.DeepL.com/Translator (free version)
Did it fix it? Did you remove that one block of code to leave you with this:
.sandf-horizontal .searchandfilter > ul {
margin: 0 auto;
display: table;
}
.sandf-vertical .searchandfilter > ul {
margin-left: 0;
}
.sandf-vertical .searchandfilter > ul > li label,
.sandf-vertical .searchandfilter > ul > li input,
.sandf-vertical .searchandfilter > ul > li label select {
width: 100%;
}
.sandf-horizontal .searchandfilter > ul > li label,
.sandf-horizontal .searchandfilter > ul > li input,
.sandf-horizontal .searchandfilter > ul > li label select {
min-width: 225px;
}
.searchandfilter > ul > li label,
.searchandfilter > ul > li input,
.searchandfilter > ul > li label select {
color: #000;
border-color: #000 !important;
}
.searchandfilter > ul > li.sf-field-submit input {
background: #e84c3d;
color: #fff;
}
blue-form-bg .searchandfilter > ul > li label {
background-color: blue;
}
beige-form-bg .searchandfilter > ul > li label {
background-color: #f5f5dc;
}
.searchandfilter > ul > li input,
.searchandfilter > ul > li label select {
background-color: #fff;
}
.sandf-horizontal .searchandfilter > ul > li {
display: inline-block;
vertical-align: top;
padding-left: 20px;
}
AnonymousInactive
No, the screenshot is an horizontal form tath would be vertical on mobile.
Is that on the vertical forms? I know they are all vertical, but you know what I mean, the ones that would be vertical on desktop?
You might need to remove this part of the ocde:
.sandf-horizontal .searchandfilter > ul > li:first-child {
padding-left: 0;
}
This is the total code you should have, not what you showed me:
.sandf-horizontal .searchandfilter > ul {
margin: 0 auto;
display: table;
}
.sandf-vertical .searchandfilter > ul {
margin-left: 0;
}
.sandf-vertical .searchandfilter > ul > li label,
.sandf-vertical .searchandfilter > ul > li input,
.sandf-vertical .searchandfilter > ul > li label select {
width: 100%;
}
.sandf-horizontal .searchandfilter > ul > li label,
.sandf-horizontal .searchandfilter > ul > li input,
.sandf-horizontal .searchandfilter > ul > li label select {
min-width: 225px;
}
.searchandfilter > ul > li label,
.searchandfilter > ul > li input,
.searchandfilter > ul > li label select {
color: #000;
border-color: #000 !important;
}
.searchandfilter > ul > li.sf-field-submit input {
background: #e84c3d;
color: #fff;
}
blue-form-bg .searchandfilter > ul > li label {
background-color: blue;
}
beige-form-bg .searchandfilter > ul > li label {
background-color: #f5f5dc;
}
.searchandfilter > ul > li input,
.searchandfilter > ul > li label select {
background-color: #fff;
}
.sandf-horizontal .searchandfilter > ul > li {
display: inline-block;
vertical-align: top;
padding-left: 20px;
}
.sandf-horizontal .searchandfilter > ul > li:first-child {
padding-left: 0;
}
AnonymousInactive
I added this code in style.css
.sandf-horizontal .searchandfilter > ul {
margin: 0 auto;
display: table;
}
.sandf-vertical .searchandfilter > ul {
margin-left: 0;
}
.sandf-vertical .searchandfilter > ul > li label,
.sandf-vertical .searchandfilter > ul > li input,
.sandf-vertical .searchandfilter > ul > li label select {
width: 100%;
}
.sandf-horizontal .searchandfilter > ul > li label,
.sandf-horizontal .searchandfilter > ul > li input,
.sandf-horizontal .searchandfilter > ul > li label select {
min-width: 225px;
}
.searchandfilter > ul > li label,
.searchandfilter > ul > li input,
.searchandfilter > ul > li label select {
color: #000;
border-color: #000 !important;
}
.searchandfilter > ul > li.sf-field-submit input {
background: #e84c3d;
color: #fff;
}
blue-form-bg .searchandfilter > ul > li label {
background-color: blue;
}
beige-form-bg .searchandfilter > ul > li label {
background-color: #f5f5dc;
}
.searchandfilter > ul > li input,
.searchandfilter > ul > li label select {
background-color: #fff;
}
I added “.sandf-horizontal” css class to my fields.
In these pages I have horizontal view:
https://www.virusfree-europa.com/strutture/
https://www.virusfree-europa.com/operatori-autorizzati/
In this page I don’t have horizontal view:
https://www.virusfree-europa.com/
AnonymousInactive
I wrote this CSS code:
.sandf-horizontal .searchandfilter > ul {
margin: 0 auto;
display: table;
}
.sandf-vertical .searchandfilter > ul {
margin-left: 0;
}
.sandf-vertical .searchandfilter > ul > li label,
.sandf-vertical .searchandfilter > ul > li input,
.sandf-vertical .searchandfilter > ul > li label select {
width: 100%;
}
.sandf-horizontal .searchandfilter > ul > li label,
.sandf-horizontal .searchandfilter > ul > li input,
.sandf-horizontal .searchandfilter > ul > li label select {
min-width: 225px;
}
.searchandfilter > ul > li label,
.searchandfilter > ul > li input,
.searchandfilter > ul > li label select {
color: #000;
border-color: #000 !important;
}
.searchandfilter > ul > li.sf-field-submit input {
background: #e84c3d;
color: #fff;
}
blue-form-bg .searchandfilter > ul > li label {
background-color: blue;
}
beige-form-bg .searchandfilter > ul > li label {
background-color: #f5f5dc;
}
.searchandfilter > ul > li input,
.searchandfilter > ul > li label select {
background-color: #fff;
}
In these pages I have horizontal view:
https://www.virusfree-europa.com/operatori-autorizzati/
https://www.virusfree-europa.com/strutture/
Whitout write this code:
.sandf-horizontal .searchandfilter > ul > li {
display: inline-block;
vertical-align: top;
padding-left: 20px;
}
.sandf-horizontal .searchandfilter > ul > li:first-child {
padding-left: 0;
}
I think you removed the original CSS you had used, so add this to the CSS I gave you:
.sandf-horizontal .searchandfilter > ul > li {
display: inline-block;
vertical-align: top;
padding-left: 20px;
}
.sandf-horizontal .searchandfilter > ul > li:first-child {
padding-left: 0;
}