-
AuthorSearch Results
-
December 26, 2018 at 10:45 pm #197495
Topic: Help Adding Font Awesome to Submit Button
in forum Search & Filter Pro
AnonymousInactiveHello,
I am having trouble adding font-awesome to the submit button. I know how to customize it using:
.searchandfilter input[type=”submit”] {….}
However, can you please provide the CSS to add in the fa fa-search (f002) into the CSS customizer for wordpress. This is the part that I am struggling with. From their I can use the inspector once i can get it into the widget’s search button.
Thanks.
December 19, 2018 at 10:43 am #196915In reply to: Styling Issue's
TrevorParticipantOK, you would need custom CSS to adjust or remove the padding between fields. Something like this:
.searchandfilter > ul > li { padding-top: 0px; padding-bottom: 0px; }
December 18, 2018 at 8:38 pm #196857In reply to: Excess whitespace on thumbnails after search
TrevorParticipantYes I am using Chrome in Windows. But now I see it. And I think I have a fix:
Add this custom CSS to the theme:
body.sfajax .elementor-380 .elementor-element.elementor-element-6c9e0661 .elementor-posts-container .elementor-post__thumbnail { padding-bottom: 0 !important; }
Then you need to add a javascript to the page:
<script> (function ( $ ) { "use strict"; $(document).on("sf:ajaxstart", ".searchandfilter", function(){ jQuery("body").addClass("sfajax"); }); }(jQuery)); </script>
TrevorParticipantHi
So, other than the drop down arrows (which would require some javascript to be added, so let me know if you want to go that far, this Custom CSS is the basis for getting it to look ‘right@:
.searchandfilter .sf-field-submit input[type="submit"] { color: #fff; background: #02aece; font-family: "Roboto", Sans-serif; border-radius: 50px 50px 50px 50px; font-size: 22px; font-weight: 500; line-height: 33px; padding: 12px 24px; flex-grow: 1; display: block; width: 100%; } .searchandfilter select { color: #7a7a7a; font-family: "Roboto", Sans-serif; font-size: 16px; border-radius: 50px 50px 50px 50px; outline: 0; padding: 15px 5px; flex-grow: 1; display: block; width: 100%; } .searchandfilter > ul { margin-left: 0; padding-left: 0; } .searchandfilter > ul li { padding: 6px 0; display: flex; } .searchandfilter ul li label { display: flex; width: 100%; }
December 12, 2018 at 11:16 am #196043In reply to: Checkbox List Scrollbar
TrevorParticipantI made your post in to a new thread, as it was not really related to that thread.
You will need to add some Custom CSS to your theme. You can usually do this by going to Appearance -> Customize -> Additional CSS and add the following:
.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; }
December 3, 2018 at 3:20 pm #195139In reply to: Hierarchical Taxonomy Not Displayed
TrevorParticipantI can see the problem. Your theme is overriding our plugin CSS. You will need some Custom CSS to fix this:
.sidebar .widget .searchandfilter ul li ul li ul { margin-left: 20px; }
I can see that you have sub-divided the categories up in
Disease
Species
Tissue TypeIt would be MUCH better to have these as distinct custom taxonomies. See this post for more information:
https://support.searchandfilter.com/forums/topic/multiple-category-fields/#post-190777
November 8, 2018 at 10:29 am #193110In reply to: Creating a multiple filter form
TrevorParticipantHi Rita
It would require custom CSS to do this, like this:
.searchandfilter > ul > li:first-child { padding-left: 0px; } .searchandfilter > ul > li { display: inline-block; vertical-align: top; padding: 0 20px; } .entry-content .searchandfilter > ul { padding: 0; } .searchandfilter > ul > li, .searchandfilter .select2-container, .searchandfilter .select2-container--default .select2-selection--multiple { min-width: 250px; }
November 7, 2018 at 2:44 pm #193022In reply to: Advanced Woocommerce Filter
TrevorParticipantYou can only do as you want (showing different fields in the form) using custom Javascript. It is something we plan for sometime in the version 3 release cycle. But, what you want in this regard CAN be done, as I some other users have reported that they have done it.
The question about region seems much the same. Each field in our form must be drawing its terms from a different taxonomy or custom field is the only rule you must follow.
I am sure someone has posted the javascript that they used, maybe this:
https://support.searchandfilter.com/forums/topic/hide-empty/
There are specific settings in our form that you must also make, plus the ‘category’ field must be in the form (even if hidden with CSS).
If you are using the WooCommerce display results method, on the General Settings tab you should select to Auto Detect the Category. You will also need both Auto Count settings ON.
On the Display Results tab, you should select to stay within the category pages.
In the form fields, you need to select Hide Empty.
October 30, 2018 at 7:51 pm #192224In reply to: Elementor Pro
AnonymousInactiveLooking good thanks for the info.
Just in case anyone else stumbles across this issue, I achieved it by doing the following:
I added my custom css only to relevant page in elementor.
body.sfajax .elementor-127 .elementor-element.elementor-element-a0f90c5 .elementor-posts-container .elementor-post__thumbnail { padding-bottom: 0 !important; }
Then I created my own function and placed this in my child themes function.php and linked it to my custom js which I placed in the root.
(function ( $ ) { "use strict"; $(document).on("sf:ajaxstart", ".searchandfilter", function(){ jQuery("body").addClass("sfajax"); }); }(jQuery));
October 9, 2018 at 7:56 am #190497In reply to: Filter Current Archive Category
TrevorParticipantThen, assuming you made the other changes I suggested in this post:
https://support.searchandfilter.com/forums/topic/filter-current-archive-category/#post-190333
You should also add that field to the form (so the auto detect of the category can work). The field can be hidden with custom CSS.
-
AuthorSearch Results
-
Search Results
-
Hello,
I am having trouble adding font-awesome to the submit button. I know how to customize it using:
.searchandfilter input[type=”submit”] {….}
However, can you please provide the CSS to add in the fa fa-search (f002) into the CSS customizer for wordpress. This is the part that I am struggling with. From their I can use the inspector once i can get it into the widget’s search button.
Thanks.