Skip Navigation

[Resolved] Lightbox in slider

This support ticket is created 5 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.

Our next available supporter will start replying to tickets in about 0.25 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 -
- - - - - - -

Supporter timezone: Pacific/Niue (GMT-11:00)

This topic contains 1 reply, has 2 voices.

Last updated by Yvette Oliveau 5 years, 9 months ago.

Assisted by: Yvette Oliveau.

Author
Posts
#1204122

Hi,

I'm almost done with a slider with lightbox.

I'm using the slider as explained here:
https://toolset.com/documentation/beyond-the-basics/showcase-content-using-post-sliders/

And the lightbox from here:
https://toolset.com/forums/topic/using-a-lightbox-in-my-view-to-display-view-content-template/

It remains a few problems:
-On 1st slide, the close button is correctly styled, but on slide 2 and 3 it's not
-I would like to add nav buttons within the lightbox

You can see the result there: hidden link

Many thx!

#1204552

Yvette Oliveau
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Pacific/Niue (GMT-11:00)

Hello

I visited the link you provided.

1. Close boxes: the close boxes looked all the same to me. A white box with an X in the center located at the upper left corner of the lightbox. Am I looking in the correct place?

2. Lightbox with Pagination
From the link you provided, I am assuming that you are using the Bootstrap "Modal" to implement the lightbox. Is this correct?
Unfortunately, if your are not using a lightbox solution that already includes pagination - it would not be so straightforward to implement this and would fall outside the scope of Views.

I found this link of interest discussing pagination within lightbox but using iLightbox. Perhaps this can help you:
https://toolset.com/forums/topic/trying-to-build-or-use-a-gallery/

But, the challenge as stated in the same ticket is:
"...Views will let you build a Slider of those images and paginate through them, but not in a Light Box.

That needs to be coded into the lightbox code itself, it is not related to Views.

Views is not the proper tool to "populate" a 3rd party code, instead, it provides the methods to display the contents with certain effects, mostly, based on Bootstrap.

THe Problem is Views pagination is outside the Loop.
But your LightBox is INSIDE the loop, and you can not add a pagination in there or it will be repeated for each element in the loop...."

The same response suggests that you look at at Module Manager and it's Slider Modules:
https://toolset.com/home/module-manager/

There are several ready to go modules you can use.