Can't disable popup display after click on custom link
-
Hi,
I created a popup with a simple text and link to an internal page (for white paper download) :
<h1 style="text-align: center;">Téléchargez notre dernier livre blanc</h1> <p style="text-align: center;">Seize pages largement illustrées et de ...</p> <p style="text-align: center;"><a class="button" href="https://URL.com/livre-blanc/">Télécharger</a></p>
The behaviour of the popup is ok except that I want it to stop displaying once user has clicked on my custom link.
I found this piece of code on github that I adapted to my popup id, but I see no change in the behaviour :
/** * Custom conversions links on WordPress Popups Plugin * https://www.ads-software.com/plugins/popups/ * */ jQuery('#spu-4456 a:not(".spu-close-popup")').click(function(){ window.SPU.track(4456, true); window.SPU.hide(4456); });
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Can't disable popup display after click on custom link’ is closed to new replies.