Skip Navigation

[Resolved] Extra HTML

This support ticket is created 6 years, 6 months 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 7 replies, has 2 voices.

Last updated by ashleyS-6 6 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#956455

Tell us what you are trying to do?
I am trying to output custom post types in a bootstrap grid. The issue is that I when the view is output, it is producing extra HTML that is skewing the grid.

My loop is fairly simple:
<div class="row">
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-post-body view_template="Loop item in Sponsors - Platinum" output='raw']
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-layout-end]
</div>

As is the view:
[wpv-noautop]

[/wpv-noautop]

However the resulting HTML is as follows:
<p>hidden link"></p>
<div class="col-sm-12 col-md-6 col-lg-4" style="background:url(/wp-content/uploads/2015/04/WSHH-Logo.jpg) no-repeat center; background-size: contain; height:200px; background-color:white;"></div>
<p>
</p>
<div style="clear:both;"></div>

What I need output is just:
hidden link">
<div class="col-sm-12 col-md-6 col-lg-4" style="background:url(/wp-content/uploads/2015/04/WSHH-Logo.jpg) no-repeat center; background-size: contain; height:200px; background-color:white;"></div>

I am working in local currently so there is no link to the page.

#956579

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ashley,

Thank you for contacting our support forum.

Could you check on the content template for this view and ensure that Auto Paragraph is not enabled for it ?

Thanks,
Shane

#956589

I have it set to Manual paragraphs

#956662

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ashley,

Would you mind switching the theme and let me know if the issue occurs because I see that our wpv-noautop shortcode isn't working for you either.

Could you switch the theme and temporarily disable all the non-toolset plugins and try again ?

Thanks,
Shane

#956673

I can confirm that it is not the Theme, as I used the 2015 and 2016 stock themes and it output the same display and code.

#956677

The biggest issue is the div clear:both.

I just need columns.

#957331

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ashley,

Would you mind allowing me to have admin access to the site so that I can investigate this one further?

Thanks,
Shane

#957381

I changed [wpv-post-body view_template="Loop item in Sponsors - Platinum" output='raw'] to this [wpv-post-body view_template="Loop item in Sponsors - Platinum" output='raw' suppress_filters='true'] in your view

suppress_filters (opt):
'true' | 'false' (default)

If suppress_filters=’true’, all third party (non WordPress) filters hooked into the_content filter will be removed, when retrieving the post body. In certain circumstances, plugins using this filter can add duplicated content to the post body – removing the filters can resolve this problem.