Forums › Forums › Search & Filter Pro › Styling form
- This topic has 9 replies, 2 voices, and was last updated 4 years, 4 months ago by Trevor.
-
Trevor(Private) May 11, 2020 at 8:20 am #243252
Could you first change the combobox script to Select2 (there is an option in our settings page to choose which Combobox script to use). Your current form uses Chosen, which is set within our plugin by default. However, it is now pretty much abandoned and has not received any major updates in a long time. It has poor support for iOS devices for example.
Select2 is maintained now by the WooCommerce team, who are, of course, owned by Automattic, the owners of WordPress, and as such is used by a lot of themes and plugins.
Let me know when that is done?
Trevor(Private) May 12, 2020 at 11:13 am #243521This should start you on your way:
.searchandfilter[data-sf-form-id="971"] li.sf-field-search input { padding: 1.5px 10px; } .searchandfilter[data-sf-form-id="971"] > ul > li, .searchandfilter[data-sf-form-id="971"] li.sf-field-search input, .searchandfilter[data-sf-form-id="971"] li.sf-field-search label, .searchandfilter[data-sf-form-id="971"] .select2-container { min-width: 245px; float: left; } .searchandfilter[data-sf-form-id="971"] > ul { display: table; } .searchandfilter[data-sf-form-id="971"] li.sf-field-submit { clear: both; }
Note that you have some CSS you already made:
input.sf-input-text { background-color: white; border: 1px solid #aaa !important; margin-top: 3px; font-size: 14px; }
The font-size and margin-top in that block may need to be removed. It may also be that you need to place the CSS in a media query to apply only to desktop, but this should get you started. This is really outside the scope of our normal support, so if you need more doing, you may need to hire a third party coder to help you.
-
AuthorPosts