Skip Navigation

[Resolved] views loop wizard missing bootstrap row

This thread is resolved. Here is a description of the problem and solution.

Problem:
When using the Loop Wizard and the Bootstrap format, the div which acts as the container row is missing the row class.

Solution:
A patch for this known issue is available in the linked erratum.

Relevant Documentation:
https://toolset.com/errata/view-loop-output-bootstrap-grid-missing-div-and-class/

This support ticket is created 6 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 4 replies, has 2 voices.

Last updated by bryan 6 years, 1 month ago.

Assisted by: Nigel.

Author
Posts
#1149073

Perhaps this is by design but I have forgotten once but each time I use the Loop Wizard it creates something like this

[wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
	<wpv-loop wrap="3" pad="true">
		[wpv-item index=1]
		<div class=" ">
			<div class="col-sm-4">[wpv-post-body view_template="Loop item in test for row class"]</div>
		[wpv-item index=other]
			<div class="col-sm-4">[wpv-post-body view_template="Loop item in test for row class"]</div>
		[wpv-item index=3]
			<div class="col-sm-4">[wpv-post-body view_template="Loop item in test for row class"]</div>
		</div>
		[wpv-item index=pad]
			<div class="col-sm-4"></div>
		[wpv-item index=pad-last]
			<div class="col-sm-4"></div>
		</div>
	</wpv-loop>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]  

If this is not a bug it certainly caused me some confusion. btw it seems to happen on every site I have, and regardless of the bootstrap version selected.

This is not urgent but I noticed one other unresolved report, where the person opening the ticket resolved by deleting the offending row

thanks

#1149196

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Sorry, it's not clear what the issue is, could you specify what is the problem?

#1149415

Nigel,

sorry my subject line got truncated, either the code wrapper failed or I failed to add it !

The problem is line 6

  <div class=" "> 

by creating an empty class=" " the grid behavior becomes unpredictable I assume its meant to be:

  <div class="row "> 

thanks

#1149842

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Bryan

OK, understood.

This is already reported, will be fixed in the next Views release, and a patch is available at this erratum: https://toolset.com/errata/view-loop-output-bootstrap-grid-missing-div-and-class/

I just tested it to confirm it works, and it does, but let me know if you find otherwise.

#1150152

Fix applied and works fine
thank you