Forums › Forums › Search & Filter Pro › Hide Name of Filter if empty and SASS
Tagged: hide titles, sass
- This topic has 3 replies, 2 voices, and was last updated 9 years, 12 months ago by
Anonymous.
-
Anonymous(Private) March 5, 2016 at 7:41 pm #38742
Hi,
I would like to ask you for help.
If you have so many parameters for filtering, you can come to situation, that one of parameter have no items to result (I hide empty items to reduce size of s&f panel and also for more intuitive search). Name of empty filter is still visible, so if I have 15 parameters, after some searching you have side panel full of only name of empty filters, which looks not so useful.
I try to use css (I set not hide empty results and set different colour to them for better visualisation) – but problem is still, that panel itself stay so long with only few choices and people are confused.
How can I achieve to hide also Title of filters, which does not contain possible result (for example: for taxonomy “Colour of T-shirt” result is 0 for all terms – if I choose black colour for socks, so in that case I would like to hide even name of filter “Colour of T-shirt” (result is 0 and in that case do not have any meaning, just space consuming) – this is only example to better understanding I am not selling T-shirts and socks :D)…and second is sass support. Would be very good to include sass files and add possibility to disable css – as I mentioned in review. I am not fun of hundreds of plugins, but your is perfect and for sure I will use it. One of my averse on plugins is, that they add hundreds of stylesheets, javascripts and unuseful functionality without control over them, which slow down sites and increase loading time …and even loading them on pages where they do not have any sense. My sites usually have perfect loading time and one of reason is, that I am not using so much of plugins (only useful as cmb2, wordfence, sometime acf – for not big sites,… and even now your plugin – it is totally useful – even is resource consuming, but with good hosting you do not have problems) and rest of css and js I compile and minify to one file as it is possible or load only when I need them. Could be good to have same possibility here – I understand this as more developers point, which can create troubles with update – but that is acceptable for me and rest, which does not know how to use it – should not ๐ – it should be marked with big red letters “use only if you know what are you doing” – I bought developers license and if plugin will be same as it is or even better, I will renew every year – because I love it ๐
…heh sorry if something is not clear, i can clear what I mean if you will ask me.
Peter
Ross Moderator(Private) March 15, 2016 at 10:02 am #39430Hi Peter
Sorry for the delays here – our offices have been closed for a few days last week.
Ok, so to go through your message:
1) If you enable “auto count” in the general tab, then inside each of your fields, enable “hide empty” – you will get the filters hiding unavailable options – I guess you know this already.
I am working on a fix, so that when there are no options, the filter does not display at all (incl heading)
2) I’m not sure if I will add SASS support yet – but I will certainly make it possible to disable the CSS via the settings panel.
Thanks for your suggestions, I hope to include these in the next update.
-
AuthorPosts