Problem:
How to style first element of a view results?
Solution:
You can achieve it using [wpv-item] shortcode in the Loop Output editor. Example screenshot here:
https://d7j863fr5jhrr.cloudfront.net/wp-content/uploads/2017/08/560896-wpv_item_index.png?x71388
This shows how to add “active” class on first slide only, you can do same for other slides (items) as well -- index=2, 3, 4, etc.
Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-item
https://toolset.com/documentation/user-guides/digging-into-view-outputs/
-- Specially take a look in section “Loop parameters & wpv-item : wrap, pad, pad-last, index”
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | 12:00 – 17:00 | - |
- | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | 18:00 – 21:00 | - |
Supporter timezone: Asia/Karachi (GMT+05:00)
This topic contains 4 replies, has 2 voices.
Last updated by manuelE 6 years, 8 months ago.
Assisted by: Noman.