Forums › Forums › Search & Filter Pro › Trouble using the plugin
- This topic has 11 replies, 3 voices, and was last updated 6 years, 4 months ago by Ross.
-
Anonymous(Private) April 24, 2018 at 6:25 pm #174088
Hi. I would like to make a simple display of this filter.
I just want an horizontal list with the categories and the result after that, in 3 columns.
Like this : https://www.bonsbaisersdetaghazout.com/eshop/
Trevor(Private) April 24, 2018 at 8:33 pm #174091The display of results is typically handled by the theme (or page builder plugin) templates, unless you are using the shortcode method (which only displays the results singly per row).
To set the form fields horizontally, you need to use custom CSS, like this:
.searchandfilter > ul > li { display: inline-block; margin-right: 20px; float: left; } .searchandfilter > ul > li:last-child { margin-right: 0; } .search-filter-results {clear: both;}
Anonymous(Private) April 25, 2018 at 8:41 am #174198Thank you for the answer.
I tried your custom css but the render isn’t that good.
https://www.bonsbaisersdetaghazout.com/test/
And what template part is used by the display shortcode ?
I am using AnyWhere Elementor for my archives and the blocks design, is there a way to use them there?
Trevor(Private) April 25, 2018 at 12:13 pm #174232That might work with the plugin. We will come back to the display of the form afterwards.
Place our form on the page. Do you use a shortcode like this?
[searchandfilter id="2298"]
Instead use this:
[searchandfilter id="2298"] [searchandfilter id="2298" action="filter_next_query"]
Remove the results shortcode:
[searchandfilter id="2298" show="results"]
and replace that with your Elementor results grid.
In the form, change the form from Shortcode Display Results method to Custom method.
-
AuthorPosts