Skip Navigation

[Resolved] Extra hidden fields causing whitespace issue

This support ticket is created 6 years, 1 month 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by JamesS2731 6 years, 1 month ago.

Assisted by: Nigel.

Author
Posts
#1171243

I am trying to: show a table of Events

Link to a page where the issue can be seen: hidden link

I expected to see: Just the table of Events

Instead, I got: The table of events has a large whitespace above it. Looking at the page source, I can see hidden fields as follows:

<div class="sp-section-content sp-section-content-logo"></div>
<div class="sp-section-content sp-section-content-excerpt"></div>
<div class="sp-section-content sp-section-content-content"></div>
<div class="sp-section-content sp-section-content-staff"></div>
etc, etc.

The list seems to repeat a number of times.

You'll see I've added text around the two outputs (filter and meta) to see within which this content is contained. It looks like it's contained within the meta output.

The loop editor doesn't show anything amiss:

[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<table width="100%">
<thead>
<tr>
<th>[wpv-heading name="types-field-event-name"]Event Name[/wpv-heading]</th>
<th>[wpv-heading name="types-field-event-venue"]Event Venue[/wpv-heading]</th>
</tr>
</thead>
<tbody class="wpv-loop js-wpv-loop">
<wpv-loop>
<tr>
[wpv-post-body view_template="Loop item in Events-Table 2"]
</tr>
</wpv-loop>
</tbody>
</table>
<!-- 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]

And the layout is as follows:

<td>[types field="event-name"][/types]</td>
<td>[types field="event-venue"][/types]</td>

This issue isn't just limited to this view, it's also happening to the riders table view below it.

Do you have any idea how I can remove the unrequired field divs and hide the whitespace?

Any thoughts or ideas greatly appreciated.

Kind regards
James

#1171248

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi James

Are you designing the output of this View using a page builder?

If not I'd say there would be some conflict from one of your other plugins or theme whereby they are injecting markup into the View output.

Can you test for that by disabling the non-Toolset plugins and switching theme to twentynineteen then trying again? If the issue disappears then it should be possible to determine the source of any conflict by a process of elimination.

Let me know how that goes so I can see how to proceed.

#1171270

My issue is resolved now. Thank you!