• Resolved angie

    (@angie77)


    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

    (@100plugins)

    Hi @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 on how to setup everything in order to make this work.

    Best regards,
    Daniel

    Thread Starter angie

    (@angie77)

    hi Daniel,

    thank you, it’s working with the recommended plugin! i was using Essencial Blocks.

    best,

    Plugin Author 100plugins

    (@100plugins)

    Cool ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.