How can I get my popup to display on a click

How can I get my popup to display on a click from a hyperlink in my template?

  • Michelle Shull
    • DEV MAN’s Apprentice

    Hi, Jack!

    You'll need to give that hyperlink a unique CSS selector in order to make the pop up trigger, as well as enable the javascript events add on in PopUp Pro.

    You can add a unique selector by editing the page/post the link exists on and switching to text view. Wrap your hyperlink in something like this:

    <p class="unique class name here">
    YOUR LINK
    </p>

    Then you'll use the unique class name you assigned as the target for your pop up to trigger.

    Hope this helps!

  • Vinod Dalvi
    • WP Unicorn

    Hi Deborah,

    I hope you are well today.

    By default the pop displays one time when user clicks on the CSS selector but if you check the Repeated option checkbox then the popup to shows up more than once (i.e. it doesn't stop showing up after the user closes the popup, and tries to click the button again).

    Cheers,
    Vinod Dalvi

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.