Home › Toolset Professional Support › [Resolved] Views return empty new lines after and before requested content.
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)
Tagged: Content Templates, Views, Views plugin
Related documentation:
This topic contains 15 replies, has 2 voices.
Last updated by barbaraK 5 years, 1 month ago.
Assisted by: Minesh.
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>
This code edtor add sme extra stuff. This is like it should be:
-----------------
hidden link
dublin/" alt=" Metabo service in
Dublin
">Metabo
---------------
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.
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.
I did like you. Create Views on local computer but I got the same problem with empty lines.
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?
Firefox, Chrome and Opera have the same empty lines.
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?
I use Win 8.1.
I tested the site with hidden link, and the problem is on others Windows also.
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.
I've escalated this issue to our next level support. Please hold on for further updates.
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.
Now it's working fine. Thank you for help Minesh.
Glad to know. Please feel free to close this ticket.
Can you please mark resolve this ticket. Thanks 🙂