Skip Navigation

[Resolved] [bug] views replaces comments with paragraphs

This support ticket is created 6 years, 8 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
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)

This topic contains 3 replies, has 2 voices.

Last updated by Christian Cox 6 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#630288

Hi,

I tend to build insanely complex views with tons of nested conditionals. Because it's easy to get lost, I like to use comments in order to get through.

Problem is views replaces those comments with empty paragraphs, effectively breaking my layouts.

Tried inserting the same code through a view and the same code directly into the code editor of the blox theme. The views shortcode outputs a blank p

<p></p>

The vpw-noautop shortcode does absolutely nothing to resolve the issue.

#630414

Hi, I assume you're talking about adding an HTML comment to a Content Template. Is that correct? If so, you can go to Toolset > Content Templates, edit the CT, and choose "Manual Paragraphs" at the bottom of the editor. If you're talking about HTML comments being replaced in another part of a View, please let me know the specific location, and also let me know how the View is added to the page. It's not normal that comments would be wrapped or replaced with paragraph tags automatically.

#630611

nope, I get those. It's for wp views.
They get added either as part of a block code in Blox or on a page.

I tried the same thing with just the code block in blox (basically replaces the page content with code (shortcodes, php, etc) that the admin enters.

the extra paragraphs are somehow generated by the view within the view.

#630672

Can I log in and look at how this is set up? I'm not quite following the Blox structure you're describing, and I'd like to try to replicate this on my own. I will activate private reply fields here.

Please let me know where I can see the extra p tags on the front-end of your site.