I discovered that the loop assistant is adding a </div> in all my loops but there is no <div> before. I thought it was a typo issue from my side but I checked all my loops are like this and I used the assistant with bootstrap grid each time.*
Here is an example (the one before the </wpv-loop>) :
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop wrap="2" pad="true">
[wpv-item index=1]
<div class="row ">
<div class="col-sm-6">[wpv-post-body view_template="Loop posts in Accueil View"]</div>
[wpv-item index=other]
<div class="col-sm-6">[wpv-post-body view_template="Loop posts in Accueil View"]</div>
[wpv-item index=2]
<div class="col-sm-6">[wpv-post-body view_template="Loop posts in Accueil View"]</div>
</div>
[wpv-item index=pad]
<div class="col-sm-6"></div>
[wpv-item index=pad-last]
<div class="col-sm-6"></div>
</div>
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found] [wpml-string context="wpv-views"]No items found[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]
Can you tell me why? and Should I remove it? Could there be any impact on the rendering?
It is an error with the Loop Wizard, the close div tag is redundant and you can and should delete it to avoid it interfering with how your content is rendered on the front-end.
Thanks for bringing it to our attention.
I'm reporting it internally so that it can be fixed.
Hi Nigel,
Thanks for this input. I just tried this on my views but then unfortunately I observe a very strange and incorrect behavior:
=> the right hand sidebar (where I have connection and some info/links) switches from right to the bottom.
This is the case for all pages I removed the </div> before the </wpv-loop>.
So there might be some other problem there.
Could you check? In the meantime I add back all the </div> in views.
Thanks
Can you tell me a View which has this extra div and the page it is displayed on?
I will mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.
Hi Nigel,
OK so now I have set back all the views with the </div> tag. It works better!
However it seems a bit strange to have this tag outside of the loop while the <div> is created by previous shortcode (so invisible).
Is there any documentation about this?
Can't it be hidden in the loop to avoid this unbalanced design?
b
Thanks for your support
Christophe