Skip Navigation

[Resolved] View showing data that is not mobile friendly to read

This thread is resolved. Here is a description of the problem and solution.

Problem: I have a View of taxonomy terms that displays each term as a link in a grid of results. Google recommends increasing the space between each item so that it is more easily clickable on mobile devices. How can I increase the gap between rows in the View results?

Solution: Use CSS padding applied to a wrapper element around the taxonomy shortcode in the loop to increase the gap between rows.

<div class="tssupp-padding-top-bottom-8px">
Example content: [wpv-taxonomy-link]
</div>

In the CSS panel:

.tssupp-padding-top-bottom-8px {
  padding-top:8px;
  padding-bottom:8px;
}
This support ticket is created 3 years, 9 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.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by indianplayschools 3 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#1986237

Google has given me a suggestion to make this page mobile friendly ( clickability issue- showing data that is too close to click on mobile). I have created this using views( long back) . Can you please suggest me how to create a view as I am unable to find a way with the new interface of toolset. Here's the page
hidden link
The view is simple. It brings in the taxonomy - location. I would like to customize the gap between each.

#1986241

Hello, you can enable the legacy Views editor in Toolset > Settings > General tab. Look for the "Editing experience" section and choose the option that enables both the Blocks experience and the legacy Views editing experience. This will give you access to the Toolset > Views menu, where you can manage your existing Views and create new ones.

It is not currently possible to create Views of taxonomy terms or Views of Users directly in the Block Editor. Those types of Views must be created in Toolset > Views, then inserted in a Block Editor design using the wpv-view shortcode or custom programming.

Let me know if you have questions about that.

#1986261

Thank you for the prompt response. Truly appreciate it. Good to see the views in dashboard
I would like to know how to add gap between each line , so that there is no readability issue. I tried adding <br>, but didn't work. I know this is not a true Toolset issue, but any help will be appreciated

#1987239
Screen Shot 2021-03-15 at 11.05.43 AM.png

If you want to increase the height of each element, you can wrap the taxonomy term contents in a div with some CSS that adds top and bottom padding. For example, in the loop:

<div class="tssupp-padding-top-bottom-8px">
Example content: [wpv-post-taxonomy type="location"]
</div>

In the CSS panel:

.tssupp-padding-top-bottom-8px {
  padding-top:8px;
  padding-bottom:8px;
}

That produces a gap like you can see in the screenshot here. You can adjust the 8px values as needed to create whatever gap you feel is necessary for legibility.

#1988329

My issue is resolved now. Thank you so much for writing down the code needed. I could implement it easily on the website