Problem: I have a taxonomy filter that is shown using checkboxes. I would like to display those filters in several columns instead of one long list.
Solution:
Here's an example of adding a CSS class to a div wrapping the taxonomy shortcode:
<div class="form-group"> <label>[wpml-string context="wpv-views"]Nationality[/wpml-string]</label> <div class="four-columns"> [wpv-control-post-taxonomy taxonomy="nationality" type="checkboxes" format="%%NAME%%" orderby="none" url_param="wpv-nationality"] </div> </div>
Then you would add this code to the CSS panel below your View's Search and Pagination editor:
four-columns { -webkit-column-count: 4; /* Chrome, Safari, Opera */ -moz-column-count: 4; /* Firefox */ column-count: 4; }
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 4 replies, has 2 voices.
Last updated by 5 years, 6 months ago.
Assisted by: Christian Cox.