Title: Define Selector
Last modified: September 20, 2018

---

# Define Selector

 *  Resolved [webworks](https://wordpress.org/support/users/webworks/)
 * (@webworks)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/define-selector/)
 * 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)

 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/define-selector/#post-10708172)
 * Hi [@webworks](https://wordpress.org/support/users/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](https://wordpress.org/support/users/webworks/)
 * (@webworks)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/define-selector/#post-10708444)
 * 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:
   [http://bbird.me/disable-replace-visual-composer-lightbox/](http://bbird.me/disable-replace-visual-composer-lightbox/))
 * Here’s my page: [https://stilesinteriors.com/welcome-3/#portfolio](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 🙂
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/define-selector/#post-10708616)
 * OK, normally it would be as simple as removing the VC lightbox script following
   the instructions on [http://bbird.me/disable-replace-visual-composer-lightbox/](http://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](https://wordpress.org/support/users/webworks/)
 * (@webworks)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/define-selector/#post-10708826)
 * 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.

 * ![](https://ps.w.org/easy-fancybox/assets/icon-256x256.png?rev=3188201)
 * [Firelight Lightbox](https://wordpress.org/plugins/easy-fancybox/)
 * [Support Threads](https://wordpress.org/support/plugin/easy-fancybox/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-fancybox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-fancybox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-fancybox/reviews/)

## Tags

 * [selector](https://wordpress.org/support/topic-tag/selector/)
 * [wp-bakery](https://wordpress.org/support/topic-tag/wp-bakery/)

 * 4 replies
 * 2 participants
 * Last reply from: [webworks](https://wordpress.org/support/users/webworks/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/define-selector/#post-10708826)
 * Status: resolved