Create “Never See This Again” Button
-
I am trying to create “Never See This Again” button. This is what I’ve done so far.
And here’s my php function
add_action( 'wp_footer', 'my_custom_popup_scripts', 500 ); function my_custom_popup_scripts() { ?> <script type="text/javascript"> (function ($, document, undefined) { $('.ga-mau-lihat-dulu').click(function (e) { $('#popmake-555').trigger('pumSetCookie'); }); }(jQuery, document)) </script><?php }
When I click the button, the cookie doesn’t get created
What do I miss?
Thank you
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Create “Never See This Again” Button’ is closed to new replies.