• Resolved borderlive

    (@borderlive)


    Hi,

    Is there a way to target the close button of a specific popup?

    I have 3 pages, each one having a specific background audio and a popup displaying a specific video. The background audio pauses when the popup opening button is clicked. I want the audio to resume when the popup close button is clicked. The following code is working for one popup, but not when there are several.

    var ClickButton = $(“#chapter-1-theme”)[0];
    $(“.pum-close.popup-close”).click(function() {
    ClickButton.play();
    });

    Thank you in advance,

    Jo

    The page I need help with: [log in to see the link]

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

    (@borderlive)

    Ok my bad, the solution was easy:

    var ClickButton = $(“#chapter-1-theme”)[0];
    $(“#popmake-34914 .pum-close.popup-close”).click(function() {
    ClickButton.play();
    });

    Hello @borderlive:

    That’s one way of doing it. We also provide users with access to the plugin styles via ‘Popup Maker’ >> ‘Settings’ >> ‘Assets (tab) >> button labeled ‘Show Popup Maker CSS’.

    Copy the plugin’s styles to your theme stylesheet and target the selector(s) that affect the popup ‘close’ button.

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

The topic ‘Target specific popup close button’ is closed to new replies.