Tell us what you are trying to do?
I would like to create 5 columns in a row instead of 6 (see attached screen shot) but 5 does not appear to be an option in bootstrap - is there a way around this?
Is there any documentation that you are following?
Hello and thank you for contacting the Toolset support.
Bootstrap grid is a 2 column grid. For a 6 columns design, we use two Bootstrap grid column for each column of ours, that's why we use the col-sm-2 CSS class:
<div class="col-sm-2"></div>
Toolset wraps the number of configured columns for the view in a row, you can use the index argument of the wpv-item shortcode to add a 1 column before and after the items, something like:
<wpv-loop>
[wpv-item index=1]
<div class="col-sm-1"></div> <!-- <=== We add this -->
<div class="col-sm-2"> The post here </div>
[wpv-item index=other]
<div class="col-sm-2"> The post here </div>
[wpv-item index=last]
<div class="col-sm-2"> The post here </div>
<div class="col-sm-1"></div> <!-- <=== We add this -->
</wpv-loop>
Hi Jamal,
Thank you for your message. Tried the code you sent but still get 6 columns although the last slot is empty - please see attached screenshot.
What am I doing wrong?
Best regards
I suspect that the view is still configured to display 6 posts per row. You can use the wrap shortcode argument to force the use of 5 elements per row.
If this does not help, please allow me temporary access and let me check this closely. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **
Hi Jamal,
Thank you. Is the fact that 5 is not divisible by 12 the reason there are big left and right margins?
Did a few searches and found this page that suggest using 2dot4 (12 / 5 = 2.4) to achieve this so tried the following CSS which seems to work apart from one important thing - the entries is not aligned in a row.
See hidden link
Is this a possible way forward OR is there any other way to get rid of the left and right margin?