Skip Navigation

[Resolved] Improving UX of Gallery on Mobile & Linking Gallery to Image via Lightbox Group

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

Problem:

Count the items of multiple instances field.

Solution:

It needs custom shortcodes, for example below similar thread:

https://toolset.com/forums/topic/count-number-of-entries-in-repeating-field/#post-1207355

For using custom shortcode in wpv-conditional shortcode, please check our document:

https://toolset.com/course-lesson/using-toolset-conditional-block/#checking-for-shortcodes-values

section "Checking for Shortcodes Values"

Relevant Documentation:

This support ticket is created 3 years, 10 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by JoelK2744 3 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1968195

Hello, the photo gallery interface on mobile could do with some improvements. When opening an image in Lightbox it is not obvious what the user should do to progress to the next image. I would expect to be able to swipe between photos but it's not possible, also the overlay arrow isn't visible so it's not clear how to move to the next image.

Are there any plans to improve this? Perhaps adding swipe functionality? Or moving the navigation arrows outside of the image and making them visible at all times?

Also, is it possible to link an individual image to a gallery via Lightbox Group? I would like to be able to link the featured image which is a hero banner to some other images in a gallery. I can assign a Lightbox Group to the image but I don't see how to assign this to the gallery to link the two together.

Thanks

#1970355

Hello,

Q1) Are there any plans to improve this? Perhaps adding swipe functionality? Or moving the navigation arrows outside of the image and making them visible at all times?

In the Toolset gallery block, when you open the image with Lightbox, you can click the image left area to get previous image, click the image right area to get the next image, there isn't any plan to improve it yet, if you agree, we can add a feature request for it, but there won't be any ETA for it.

Q2) is it possible to link an individual image to a gallery via Lightbox Group?
Same as above, there isn't such kind of built-in feature within Toolset Gallery block.

And there is a misunderstanding, when you click one item of image, what you do want?
- Open the lightbox?
- Or open the link?
If you want to open another specific URL link, you can try these:
1) Setup a repeatable field groups, with two fields:
- One custom image field
- One custom URL field
2) Add a view block:
- Query posts of above repeatable field group
- Filter by:
Select items from the repeatable field group that are related to the Post where this View is shown.
- In view's loop, display the image with link to value of custom URL field

#1970371

Thanks Luo for your reply.

I guess my point regarding the gallery on mobile was that it's not obvious that you need to tap on the right hand side of the image to advance, but I'll try and work out some CSS using the arrows.

And on the second part, I would like the images to open in a Lightbox, I just thought it would be a nice feature if the image used as hero/header could be linked so that it is part of a gallery below on the same post when opened in Lightbox (using the Lightbox group feature) but no problem if that's not possible.

One other question...is it possible to use the conditional block to conditionally set a gallery based on the number of images in the gallery custom field? For example, if there are 4 images in the gallery custom field use "gallery A" block, if there are 2 or 3 images use "gallery B" block, if there is only one image use image block, if there are no images display none.

Thanks

#1971809

Q1) if the image used as hero/header could be linked so that it is part of a gallery
Unfortunately, there isn't such kind of built-in feature.

Q2) One other question
It needs custom shortcodes, for example below similar thread:
https://toolset.com/forums/topic/count-number-of-entries-in-repeating-field/#post-1207355

For using custom shortcode in wpv-conditional shortcode, please check our document:
https://toolset.com/course-lesson/using-toolset-conditional-block/#checking-for-shortcodes-values
section "Checking for Shortcodes Values"

#1972197

My issue is resolved now. Thank you!