Skip Navigation

[Resolved] Removing all divs from view output

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 1 voice.

Last updated by Minesh 7 months ago.

Assisted by: Minesh.

Author
Posts
#2793159

Tell us what you are trying to do?
I am trying to integrate a view with a slider (as my customer wants forward and back buttons and that doesn't seem possible with the toolset slider block), and all the divs are breaking it, so I would like to force the output of the view to not have any wrapper divs
Is there any documentation that you are following?
Not really, I have found a reference to it at https://toolset.com/forums/topic/remove-wrapper-divs/ but the link is broken, so not a lot of use.
Is there a similar example that we can see?

What is the link to your site?
britastro.org - but that isn't very relevant

#2793161

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I'm not sure why the pagination previous/next controls are not displayed with the slider block you added.

Here is a sandbox site and you can auto-login to it using the following link:
- hidden link

As you can see I've setup a Book post with few images:
- hidden link

And here is the content template that displays the single Book post with all those images using slider block:
- hidden link

Are you looking for something else?

#2793162

I can't see any views in your sandbox, so I am not sure how it is relevant.

I am trying to make a view without all the
<div class="wp-block-toolset-views-view-template-block wpv-block-loop-item php-to-be-replaced-with-shortcode rslides" data-toolset-views-view-template-block="ab3628554b8a7b5bae97fe6ed9b1e691">

kind of thing in the output, as this stops the slider working by default.

#2793166

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You can not remove those wrapping divs while using block based view.

If you build a legacy view, then you will have a option to disable the wrapping around divs.
- https://toolset.com/documentation/legacy-features/views-plugin/view-layouts-101/#list-with-separators

More info:
- https://toolset.com/course-lesson/enabling-legacy-version-of-toolset-views/