The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
Forums › Forums › Search & Filter Pro › Custom CSS
Tagged: custom css
- This topic has 22 replies, 2 voices, and was last updated 4 years, 4 months ago by Charlotte Simons.
-
Charlotte Simons(Private) May 15, 2020 at 3:13 pm #244196
That’s weird, neither of them are perfectly correct.
This is what I want: https://www.screencast.com/t/Pz0onM4H4m
And this is what I see: https://www.screencast.com/t/UBRkUkAicG
Trevor Moderator(Private) May 15, 2020 at 3:23 pm #244201I think you are seeing default behavior of the browsers. Try instead to attach Select2 to the dropdowns, then style them. This post explains how (4th paragraph down):
https://support.searchandfilter.com/forums/topic/format-question/#post-221332
This post will also be helpful:
https://support.searchandfilter.com/forums/topic/customise-dropdown-combobox/#post-180345
Charlotte Simons(Private) May 18, 2020 at 8:10 am #244386Hi Trevor!
I changed the Combobox to Select 2 and tried to change the CSS but it still won’t work. When I inspect the element, I still see the same classes, so I can’t figure out what to change.Trevor Moderator(Private) May 18, 2020 at 2:55 pm #244518The JavaScript needed does not seem to be on the page (it is in the first link from a previous post):
You need to add this JavaScript to the page:
<script> (function ( $ ) { $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ $('select.sf-input-select').select2(); }); }(jQuery)); jQuery(document).ready(function($){ $('select.sf-input-select').select2(); }); </script>
If you want it without the search box at the top of the select boxes, then this instead:
<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>
Charlotte Simons(Private) May 19, 2020 at 8:52 am #244734Oh oops, that’s it. Got it now, I can edit the style in css. Thanks a lot!
Just a little question on the side (tell me if I have to make a new post about this): I’m using this filters on the Elementor post widget, but I actually just want to display the images like a gallery. So without clickthrough to the post. Is this possible in a way? Because this plugin only works with the Elementor portfolio or posts widget. Not with the actual gallery widget?
Trevor Moderator(Private) May 19, 2020 at 9:14 am #244747There is an option In Elementor to make a custom Posts layout, so you should be able to use that.
Charlotte Simons(Private) May 19, 2020 at 10:17 am #244772In the regular post widget, there is no custom post layout? And if I use another widget (like the post extra widget), I can’t make the Search & Filter Query as source. I just want a gallery where the image opens on click (no post), is that possible in one or another way?
Trevor Moderator(Private) May 19, 2020 at 10:25 am #244776Ah, I see you are correct. I had seen sites with Custom skins, but I think they used the Ele Custom Skin extension:
https://wordpress.org/plugins/ele-custom-skin/
Maybe that will do what you want? I haven’t tested it though.
Charlotte Simons(Private) May 19, 2020 at 10:31 am #244780Yes I know that plugin, but the problem remains that I can’t select your Search & Filter as query source. You only allow this in the regular post or portfolio widget of Elementor.
Trevor Moderator(Private) May 19, 2020 at 10:35 am #244782That plugin allows you to add a skin to the Posts Widget I think?
-
AuthorPosts
The topic ‘Custom CSS’ is closed to new replies.