Title: lightbox hook
Last modified: September 9, 2024

---

# lightbox hook

 *  Resolved [angie](https://wordpress.org/support/users/angie77/)
 * (@angie77)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/lightbox-hook/)
 * hi!
   i’m trying to enable the lightbox for the images uploaded to the pins; i’ve
   added the hook ‘Customize location bubble image (eg. to add a lightbox)’ to the
   site’s funcions.php, but can’t get it to work..maybe i’m missing something i 
   shoul insert in the hook below?
 * add_filter(‘oum_location_bubble_image’, function ( $image, $location ) { // extend
   or change image $image = ‘<a class=”lightbox” href=”‘ . $location[‘image’] . ‘”
   >’ . $image . ‘</a>’; return $image; }, 10, 2);
 * thank you!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [100plugins](https://wordpress.org/support/users/100plugins/)
 * (@100plugins)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/lightbox-hook/#post-18005124)
 * Hi [@angie77](https://wordpress.org/support/users/angie77/),
 * I’ve tested the above script (added it to my theme’s functions.php) and it worked.
 * Note that this script does not automatically add a lightbox feature to your WordPress
   installation. It just shows you how you can modify the location images to add
   a lightbox effect or something else. You need to have a lightbox plugin additionally.
 * I’ve just released [a support article](https://www.open-user-map.com/knowledge-base/how-to-open-images-in-a-lightbox/)
   on how to setup everything in order to make this work.
 * Best regards,
   Daniel
 *  Thread Starter [angie](https://wordpress.org/support/users/angie77/)
 * (@angie77)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/lightbox-hook/#post-18005632)
 * hi Daniel,
   thank you, it’s working with the recommended plugin! i was using Essencial
   Blocks.best,
 *  Plugin Author [100plugins](https://wordpress.org/support/users/100plugins/)
 * (@100plugins)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/lightbox-hook/#post-18005795)
 * Cool 😉

Viewing 3 replies - 1 through 3 (of 3 total)

 The topic ‘lightbox hook’ is closed to new replies.

 * ![](https://ps.w.org/open-user-map/assets/icon-256x256.gif?rev=3723910)
 * [Open User Map – Interactive Leaflet Maps](https://wordpress.org/plugins/open-user-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/open-user-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/open-user-map/)
 * [Active Topics](https://wordpress.org/support/plugin/open-user-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/open-user-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/open-user-map/reviews/)

## Tags

 * [hook](https://wordpress.org/support/topic-tag/hook/)

 * 3 replies
 * 2 participants
 * Last reply from: [100plugins](https://wordpress.org/support/users/100plugins/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/lightbox-hook/#post-18005795)
 * Status: resolved