I kept having the problem of my first dropdown being empty when I used Toolset filters, so I am writing down the fix here for future reference. Just add this little bit of jQueary to the JS area under the filter.
jQuery(document).ready(function() { jQuery('.wpv-filter-form select option:first').text('All locations'); }); jQuery(document).ready(function() { jQuery('.wpv-filter-form select option:first').text('All locations'); jQuery('.wpv-filter-form select option[value=33]').hide(); });
To be clear, replace ‘All locations’ with whatever works for your dropdown. In the image above, I have replaced it with ‘Choose start month’.
Leave a Reply