BuddyDev

Search

Gallery Grid view – click on image for lightbox popout

  • Participant
    Level: Master
    Posts: 413
    Venutius on #15263

    Hi Brajesh,

    I’m using the gallery shortcode to display the gallery as part of the page content.

    Currently, clicking on an image loads another page, which shows quite a small view of the image, with no ability to zoom into the content.

    Ideally I’d lke for that image to pop out to a lightbox, with the ability to zoom in to the image, since these images are being used for amongst other things map based research, some of them are large and can only make sense if zoomed into.

    Any suggestions as to how to obtain this?

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #15265

    Hi George,
    You may add lightbox=1 to the shortcode and the lightbox will be enabled for them.

    Also, if you want to do it yourself, we do have a well defined JavaScript API too
    https://buddydev.com/mediapress/topics/api-guides/lightbox/mediapress-lightbox-javascript-api/

    Hope that helps.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 413
    Venutius on #15270

    I’ll checkout the API tonight, I added the lightbox code but unfortunately the image in the lightbox is even smaller than on the page, ideally I need to be able to zoom into it.

You must be logged in to reply to this topic.

This topic is: not resolved