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)
Dieses Thema enthält 4 Antworten, hat 2 Stimmen.
Zuletzt aktualisiert von vor 5 Jahren, 7 Monaten.
Assistiert von: Christian Cox.