Forums › Forums › Search & Filter Pro › Changing the design of the search form
Tagged: V3
- This topic has 12 replies, 2 voices, and was last updated 5 years, 1 month ago by
Trevor.
-
Trevor(Private) August 12, 2020 at 12:15 pm #255779
To remove the search box on the fields, change them back to normal dropdown selects, and see this post (some of the suggestions I think you have done already):
https://support.searchandfilter.com/forums/topic/css-dropdown-option-active-hover/#post-249903
As to the font color, there should be some CSS snippets in this forum search that will help you:
https://support.searchandfilter.com/forums/search/searchandfilter+data-sf-form-id+color+select2/
I am not sure what you mean by “I would also like the arrow like I have right now instead of the ‘plus’ and ‘minus’ signs.” You already have dropdown arrows?
Trevor(Private) August 12, 2020 at 4:57 pm #255846To me it does not look like you applied this JavaScript code to the page:
<script> (function ( $ ) { $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ $('select.sf-input-select').select2({minimumResultsForSearch: -1}); }); }(jQuery)); jQuery(document).ready(function($){ $('select.sf-input-select').select2({minimumResultsForSearch: -1}); }); </script>
Which would apply select2 to those boxes, without the search box at the top of each.
Trevor(Private) August 13, 2020 at 11:18 am #255932The code needed to make it 100% wide is a modification of what you already have, this bit:
.searchandfilter[data-sf-form-id=”2703″] li.sf-field-search input, .searchandfilter[data-sf-form-id=”2703″] li.sf-field-search label, .searchandfilter[data-sf-form-id=”2703″] .select2-container { min-width: 100%; }
Needs to be:
.searchandfilter[data-sf-form-id="2703"] li.sf-field-search input, .searchandfilter[data-sf-form-id="2703"] li.sf-field-search label, .searchandfilter[data-sf-form-id="2703"] li[data-sf-field-input-type="select"] .select2-container, .searchandfilter[data-sf-form-id="2703"] li[data-sf-field-input-type="select"] label { min-width: 100% !important; width: 100% !important; }
You have set the font in some places in your code to black, e.g.:
.searchandfilter[data-sf-form-id=”2703″] .select2-container, .select2-container–open { font-size: 14px; color: #000; }
It is here that the font and font color may need to be set.
-
AuthorPosts