Problem: I have a slider View on my site that displays several pages of results. On a mobile device, I would like to reduce the number of results with a different limit.
Solution: There's no JavaScript API for slider Views, so manipulating the page numbers and limits on the front-end isn't supported. However, if you can implement a backend library that can determine the current User's screen size effectively, you can use the Views API to select a different Content Template. Or you can use CSS and Media Queries to show / hide different pieces of content based on screen size.
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_force_template
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_force_wordpress_archive
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 5 years, 9 months ago.
Assisted by: Christian Cox.