• Resolved DionysusArt

    (@dionysusart)


    Hello,

    Is there a function in this plugin where i can deactivate the action to open image? In the lightbox section when set to none when i click on the image it opens in another tab. is it possible to cancel it?

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Imagely

    (@imagely)

    @dionysusart – More than anything else, what you are describing is the basic default functionality of how an Internet browser will handle a <img> tag.

    The following JavaScript (added appropriately to your site) may be able to help with this:

    // Disable <img> clickable.
    $(document).ready(function () {
        $('.post-body a img:not(.clickEnabled)').click(function (e) {
            if (e.which === 1) {
                e.preventDefault();
            }
        });
    });

    You may need to tweak the script to suit your specific site/theme.

    Thanks!

    – Cais.

    • This reply was modified 6 years, 6 months ago by Imagely.
    Thread Starter DionysusArt

    (@dionysusart)

    hello, thanks for the quick feedback..
    Yes i want to remove in all images by client request. I was able to deactivate in the other images but not in the nextGen gallery. Where should i add this code?

    Thanks in Advance,
    Dionysus

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Deactivate open image action’ is closed to new replies.