• Resolved lisajwells

    (@lisajwells)


    I have a link in a widget which I want to trigger my popup.

    I’ve tried:

    <a id="blog-popup-btn" class="button small" href="[supsystic-show-popup id=100]">Click here to find out</a>
    404 error (thinks it’s a page)

    <a id="blog-popup-btn" class="button small" [supsystic-show-popup id=100]>Click here to find out</a>
    nothing

    <a id="blog-popup-btn" class="button small" onclick="ppsShowPopup(100); return false;"> Click here to find out</a>
    Uncaught ReferenceError: ppsShowPopup is not defined

    https://www.ads-software.com/plugins/popup-by-supsystic/

Viewing 1 replies (of 1 total)
  • Thread Starter lisajwells

    (@lisajwells)

    I made it work by:

    1) allowing shortcode in widgets by placing this in functions.php:
    add_filter('widget_text', 'do_shortcode');

    2) using the shortcode like this:
    <a id="blog-popup-btn" class="button small" href="https://[supsystic-show-popup id=100]"> Click here to find out</a>

Viewing 1 replies (of 1 total)
  • The topic ‘Click on certain link / button in Widget’ is closed to new replies.