Forums › Forums › Search & Filter Pro › Result count and checkbox formating
Tagged: result count checkbox
- This topic has 2 replies, 2 voices, and was last updated 7 years ago by Anonymous.
-
Anonymous(Private) October 31, 2017 at 9:30 pm #139529
Hello, thanks for the great plugin (-:
Everything works fine except for 3 small problems:
– Is there any way to show the total result count of the actual search in the S&F widget?
– How can i format the checkboxes horizontal?
– In your Movie demo is the “Genre checkbox-area” reduced (scrollable) – how is it done?Trevor(Private) November 1, 2017 at 7:04 am #139547Hi
Q1. Is there any way to show the total result count of the actual search in the S&F widget?
A1. If you mean in the same space as the form, not easily. If you had this count in the result block on the page (and that would be dependent on your results template), you could use javascript to copy this value to another part of the page. But you would need to hire a third party coder to do that.Q2. How can I format the checkboxes horizontal?
A2. Most formatting of the forms needs to be done using custom CSS. There are code snippets in answers on the forum, such as this:.searchandfilter ul > li > ul:not(.children) { padding-left: 0; } .searchandfilter > ul > li > ul > li { display: inline-block; } .searchandfilter > ul > li > ul > li .sf-label-checkbox { margin-right: 20px; }
Q3. In your Movie demo is the “Genre checkbox-area” reduced (scrollable) – how is it done?
A3. There are many ways that you can do this, including some quite pretty scrollbars using jQuery, but in this case a simple piece of custom CSS:.searchandfilter > ul > li[data-sf-field-input-type="checkbox"] > ul, .searchandfilter > ul > li[data-sf-field-input-type="radio"] > ul { max-height: 150px; overflow: auto; }
Note that this will affect all checkbox and radio button groups in your form.
-
AuthorPosts