Forums › Forums › Search & Filter Pro › Search not work correctly
- This topic has 10 replies, 2 voices, and was last updated 4 years, 8 months ago by Trevor.
-
Anonymous(Private) March 1, 2020 at 10:36 am #235252
I’ve a form, managed from Trevor ( Thank you ) that now has this CSS code :
.searchandfilter[data-sf-form-id="9080"] select.sf-input-range-select { border: 1px solid #aaa; padding: 2px 0; border-radius: 4px; } .searchandfilter[data-sf-form-id="9080"] > ul > li:first-child { margin-left: 0; } .searchandfilter[data-sf-form-id="9080"] > ul > li { margin-left: 25px; float:left; } .searchandfilter[data-sf-form-id="9080"] { background: #fff; float: left; width: 100%; } .searchandfilter[data-sf-form-id="9080"] h4 { color: black; font-family: "Montserrat", Sans-serif; font-size: 18px; font-weight:600 } .searchandfilter[data-sf-form-id="9080"] select, .searchandfilter[data-sf-form-id="9080"] .select2-container .select2-results__option, .searchandfilter[data-sf-form-id="9080"] .select2-container--default .select2-selection--single .select2-selection__rendered { color: black; font-family: "Montserrat", Sans-serif; font-size: 14px; } .searchandfilter[data-sf-form-id="9080"] .select2-container { min-width: 230px; } .searchandfilter[data-sf-form-id="9080"] > ul { display: table; margin: 0 auto; }
but i’ve two problems :
1) the last field ( price range ) is not of the same dimension of others.
2) when i select a field the form give me immediately the result redirecting me on teh search result page using only a filterMy old form give me the possibility to select one or moe fields to have the final result correctly filtered .
F.e.
select first field
second field show me only elements that respect the first query
Select second field
Third field show me only elements that respect the second query that respect the first
etc etcWhy now it does not work ?
i do not see more the partial result for every step for every field inserted .Thank you for your help
Trevor(Private) March 3, 2020 at 5:35 pm #235436At the moment, my login does not work (at least as an admin), I assume you switched it back off.
When set to Post Type Archive, a form takes control of the template for the archives page of the post type. With two forms on the page doing the same thing, there is the possibility that the two forms will conflict. One form will always be hidden, but it is still active. Also, when you select an option in one form, the other form will not know that this has happened.
So, we normally recommend just the one Post Type Archive form per post type. This does mean that, where you want the forms to be different between mobile and desktop, your only options are to style them differently, but the field types would still be the same (for example, a field cannot be checkbox on desktop and dropdown select on mobile). This also means that the form has to remain in the same location on the page, and that can be an issue requiring careful planning.
In any event, the form is currently set to ‘Custom’ display results method.
I had thought that you wanted to be able to select more than one filter term before submitting the form. with Auto Submit ON, for each selection, the form will submit. with Auto Submit OFF, of course you must add a submit button to the form to allow the user to send the query.
As to whether the form would work, it does not look setup to integrate with Elementor right now? As per this post:
-
AuthorPosts