Skip Navigation

[Resolved] Views return empty new lines after and before requested content.

This support ticket is created 5 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
- 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 15 replies, has 2 voices.

Last updated by barbaraK 5 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1359639

I have view inside a view. The nested view should return only name and slug of taxonomy item (city name).
But before and after item name, vews return lots of empty lines.
I noticed this is depend of code in loop editor.
After I changed code in loop editor to one line, amount of empty new lines was reduced, but still it is a few.

Example of what I get:

<a href="<em><u>hidden link</u></em>


dublin/" alt=" Metabo service in



	
	
	
		Dublin
	
	
	
	

">Metabo</a>
#1359641

This code edtor add sme extra stuff. This is like it should be:
-----------------
hidden link

dublin/" alt=" Metabo service in

Dublin

">Metabo
---------------

#1359655

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can I've problem URL and access details so I can check whats going wrong with your nested views?

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1360483

Minesh
Supporter

Languages: English (English )

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

I've exported the Types, views, layouts you created from your site and on my local test install I've imported those and I've also added the GeneratePress theme.

And strange this is that I do not able to reproduce the issue you reported. I can see the anchor tags are rendered normally in page source.

#1361223

I did like you. Create Views on local computer but I got the same problem with empty lines.

#1361829

Minesh
Supporter

Languages: English (English )

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

It looks like the issue is browser-specific - when I checked with Firefox - the anchor tags rendered normally in browser's page souce but when I checked again with chrome I can see the issue you are talking about. The anchor tags rendered with many spaces.

Can you please confirm - do you see the expected results with you load your page with firefox browser?

#1362235

Firefox, Chrome and Opera have the same empty lines.

#1362583

Minesh
Supporter

Languages: English (English )

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

That is strange. With Firefox I can see the anchors are rendred noramlly but yes, with Chrome I can see the issue.

What operating system you are using?

#1362989

I use Win 8.1.
I tested the site with hidden link, and the problem is on others Windows also.

#1363483

Minesh
Supporter

Languages: English (English )

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

This is really strange. I will give another try and if still issue persists I will report it to our next level support. Please hold on for a further updates.

#1364061

Minesh
Supporter

Languages: English (English )

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

I've escalated this issue to our next level support. Please hold on for further updates.

#1364231

Minesh
Supporter

Languages: English (English )

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

Can you please check now: hidden link

I've wrap the view's output with the [wpv-noautop] shortcode for the view ID 203:
=> hidden link

[wpv-noautop][wpv-layout-start][wpv-items-found]<!-- wpv-loop-start --><wpv-loop>[wpv-item index=1]<a href="[wpv-bloginfo show='url']/naprawa/[wpv-taxonomy-slug]/[wpv-view name='miasto-slug']/" alt="Naprawa [wpv-taxonomy-title] [wpv-view name='miasto-name']">[wpv-taxonomy-title]</a>[wpv-item index=other], <a href="[wpv-bloginfo show='url']/naprawa/[wpv-taxonomy-slug]/[wpv-view name='miasto-slug']/" alt="Naprawa [wpv-taxonomy-title] [wpv-view name='miasto-name']">[wpv-taxonomy-title]</a></wpv-loop><!-- wpv-loop-end -->[/wpv-items-found][wpv-no-items-found]<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>[/wpv-no-items-found][wpv-layout-end][/wpv-noautop]

I can see now space issue is fixed. Can you please confirm.

#1364311

Now it's working fine. Thank you for help Minesh.

#1364323

Minesh
Supporter

Languages: English (English )

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

Glad to know. Please feel free to close this ticket.

#1365407

Minesh
Supporter

Languages: English (English )

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

Can you please mark resolve this ticket. Thanks 🙂