Forums › Forums › Search & Filter Pro › How to add a range slider
Tagged: search form, slider
- This topic has 11 replies, 2 voices, and was last updated 7 years, 11 months ago by
Anonymous.
-
Trevor(Private) November 28, 2017 at 2:39 pm #144286
Dies this help?
https://screenshots.firefox.com/xwjsat6MNVPH5Y5C/sandfdev.cdnwebservices.net
It can be done with Number or Date sub types.
Trevor(Private) November 28, 2017 at 4:50 pm #144321Ah, the number of Oscars is a Custom field (number), not a taxonomy. As taxonomies are, by definition textual, they are assumed not to be numbers, and so cannot have a slider.
I always use ACF to make a custom number field for sliders.
If you use the browser inspector and look at that field in the demo, you will its name is
sf-field-post-meta-oscar.Anonymous(Private) December 1, 2017 at 9:11 am #144991Thanks Trevor, it worked as you said me.
One more question: the post-meta fields were added on the search form with a label which is the same as the form label. If i edit the form-label css the post-meta labels change as well. How can I customize the post-meta label without changin the search-form title labe?
Trevor(Private) December 2, 2017 at 8:54 am #145198OK
First remove these two blocks of CSS from the fusion.css file:
.fusion-widget-area-1 .widget h4 { margin-bottom: 15px; }and
.searchandfilter h4 { font-size: 22px !important; background: white; background: url(//biancoprova.altervista.org/wp-content/uploads/2017/11/label.jpg) repeat-x; background-repeat: repeat-x; border-top-left-radius: 10px; width: 300px; color: #fff !important; font-weight: 700 !important; margin: 10px 0px 0px 0px; padding: 5px 5px 5px; font-size: 16px; text-shadow: 1px 1px 2px #444444, 0px 0px 1px #fff; }Add this new CSS:
.searchandfilter h4 { font-size: 22px !important; width: 300px; } .searchandfilter .sf-field-search h4 { background: url(//biancoprova.altervista.org/wp-content/uploads/2017/11/label.jpg) repeat-x; border-top-left-radius: 10px; color: #fff !important; font-weight: 700 !important; margin: 10px 0px 15px 0px; padding: 5px 5px 5px; text-shadow: 1px 1px 2px #444444, 0px 0px 1px #fff; } .searchandfilter .meta-slider { margin-top: 15px !important; margin-bottom: 15px !important; } .searchandfilter .sf-field-post-meta-wpcf-portata h4, .searchandfilter .sf-field-post-meta-wpcf-sollevamento h4{ margin: 0px 0px 15px 0px; padding: 5px 20px 5px 8px; border: 1px solid #aaa; border-radius: 4px; } -
AuthorPosts