• Resolved webworks

    (@webworks)


    Hello,

    How do I tell WP Bakery / Visual Composer (media grids) to use this lightbox?

    If there is no way,

    Is there a place where I can specifically define the selector this lightbox uses?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @webworks with the default settings, all normal image links should be automatically detected, and FancyBox bound to them. Is that not working for you?

    The default selector for images is .fancybox

    Thread Starter webworks

    (@webworks)

    Apparently I need to *change* the selector for fancybox to be named something else (in order for WP Bakery to pick it up and use it. (According to this post: https://bbird.me/disable-replace-visual-composer-lightbox/)

    Here’s my page: https://stilesinteriors.com/welcome-3/#portfolio

    The client doesn’t prefer the WP Bakery default lightbox (prettyphoto). We just need a single enlarged image to appear with an exit “X” in the corner.

    I hope we can use Fancybox ??

    OK, normally it would be as simple as removing the VC?lightbox script following the instructions on https://bbird.me/disable-replace-visual-composer-lightbox/ and no need to go any further. The Autodetection in Easy FancyBox would be able to pick it up from there.

    But, in your case, the galleries seem to get loaded after the initial page load through an ajax request, which makes them invisible for fancybox. Unless there is a certain event triggered after this ajax request has loaded its content. Do you know if that is the case?

    Thread Starter webworks

    (@webworks)

    I’m not sure – I’ve tried quite a few things – no joy ??

    I suppose I’ll need to build the grid manually.

    Thanks for responding so quickly!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Define Selector’ is closed to new replies.