Skip Navigation

[Resolved] removing DIV wrapper from view output

This support ticket is created 4 years, 2 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.

Our next available supporter will start replying to tickets in about 0.83 hours from now. Thank you for your understanding.

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)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by staceyz 4 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#1772353

Hi - how do I create my view output so that it doesn't wrap it in a DIV. I have seen other support topics from years ago about this and some of the responses say that there will be a future option to remove it without adding custom code.
Thanks!

This is what it outputs:
<div id="wpv-view-layout-753" class="js-wpv-view-layout js-wpv-layout-responsive js-wpv-view-layout-753" (and more within the div)>
MY OUTPUT
</div>
when I'd like it to just output
MY OUTPUT

#1772365

Also, need to note that this view does depend on a query filter, which appears to be coded into the div... FYI!

#1772377

So... I'm thinking instead of removing the DIV, it can be change to a SPAN??

#1772455

Shane
Supporter

Languages: English (English )

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

Hi Stacey,

Thank you for getting in touch.

This query filter is it for the frontend ? Is this view being used as a search view ?

If not then there is a checkbox on the view below the Loop Editor to remove the wrapper divs.

However this must be a clean view that is not used for anything else. Meaning there must not be any pagination or searches on the view.

Thanks,
Shane

#1773625

My issue is resolved now. Thank you!