Navigation überspringen

[Gelöst] How to launch a gallery lightbox with a textual link

This support ticket is created vor 4 years, 7 months. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 4 years, 7 months.

Assistiert von: Minesh.

Author
Artikel
#2201611

We are using a gallery view, which we limited to 3 images, the gallery could contains more repeating images.
Now, below the gallery, we would like to place a text, like "see all 10 photos", what would be the best way to add the gallery lightbox link to the text? So when clicking on the text the related lightbox will appear.

Thank you!

#2201743

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Using the Toolset Gallery block you can display the repeating image field with lightbox but there is no way to add a link and when you click on that it should open a lightbox with remaining images.

Why dont you use "Image Slider" block? where it will offer you the feature that you can adjust number of columns you want to display and with lightbox. Will that work for you?

For example - the three images you see with the following post is displayed using Image Slider block:
=> versteckter Link

#2201861

Thank you for the suggestion but we would like to stick with the gallery as is.

I think we could have a solution using the following to display the SEE ALL PHOTOS text

(then via css only show the first instance of the

  • <div>

      [wpv-for-each field="wpcf-featured-property-images"]

    • versteckter Link
    • [/wpv-for-each]

    </div>

  • #2202425

    Minesh
    Unterstützer

    Sprachen: Englisch (English )

    Zeitzone: Asia/Kolkata (GMT+05:30)

    Yes - you can use it in that way.