Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Val_

    (@val_)

    <a target="_blank" href="..."><img ...></a>

    Couldn’t edit my post. That’s so 1995…

    Plugin Author Bojan Radonic – WPMU DEV Support

    (@wpmudev-support4)

    Hey there Val,

    How are you doing today?

    The class you’re looking for to add to your image is this one:

    wdpu-close

    This class is already used on the x button above and it will trigger popup closing. However, in order to not affect the x button in the top right corner of the popup you’ll have to add some CSS as well. For example you’ll have to target that element specifically, in your case something like this should work:

    .wdpu-content img.wdpu-close {
        top: auto;
        right: auto;
        background: none;
        position: relative;
    }

    If this doesn’t work please post link to your page where I can see the popup and let me know which image you want popup to close to.

    Best regards,
    Bojan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Close popup after it's clicked’ is closed to new replies.