Title: Create conversion action on custom button
Last modified: October 20, 2020

---

# Create conversion action on custom button

 *  Resolved [De Belser Arne](https://wordpress.org/support/users/arnedb/)
 * (@arnedb)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/create-conversion-action-on-custom-button/)
 * Hello there,
 * I have added a custom button with HTML to my popup:
    `<a href="/contentkalender-
   2021/" class="popup-button">Start je planning</a>`
 * Now I have a problem that this doesn’t trigger conversion= true
 * Is there a way to add a conversion event on a custom a/button element?

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

 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/create-conversion-action-on-custom-button/#post-13557944)
 * it should trigger conversion true. Do you have cookies set for conversion? or
   you have the popup in test mode? check those things or share the url where I 
   can see the issue.
 * Thanks
 *  Thread Starter [De Belser Arne](https://wordpress.org/support/users/arnedb/)
 * (@arnedb)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/create-conversion-action-on-custom-button/#post-13560933)
 * Hello Damian,
 * I think everything is set up as supposed to, correct me if I’m wrong:
 * Test mode off:
    [https://i.gyazo.com/9fd060aafc7ea17dc7f212a5b60a3dfa.png](https://i.gyazo.com/9fd060aafc7ea17dc7f212a5b60a3dfa.png)
 * Cookie:
    [https://i.gyazo.com/2dbc5dcd911bd16fed0ef45c3fe24a6f.png](https://i.gyazo.com/2dbc5dcd911bd16fed0ef45c3fe24a6f.png)
 * Right now the popup is set to only display on the homepage:
    [https://www.key2info.be/](https://www.key2info.be/)
 * Both clicking the custom button I made, and clicking the X doesn’t prevent the
   popup from showing over and over.
 * Kind Regards!
 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/create-conversion-action-on-custom-button/#post-13562504)
 * The cookies are wrong. You have them set to 0 days, meaning no cookie it’s created.
   
   you should set them to a number of day you want the popup to be hidden once clicked.
   Take a look to [https://wppopups.com/docs/how-to-configure-popup-closing-and-cookies/](https://wppopups.com/docs/how-to-configure-popup-closing-and-cookies/)
 *  Thread Starter [De Belser Arne](https://wordpress.org/support/users/arnedb/)
 * (@arnedb)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/create-conversion-action-on-custom-button/#post-13562725)
 * Hello Damian,
 * That’s totally my fault, I was reading “0” as “forever”.
 * I set it to 999 and it works! Thanks!

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

The topic ‘Create conversion action on custom button’ is closed to new replies.

 * ![](https://ps.w.org/wp-popups-lite/assets/icon-256x256.png?rev=2202255)
 * [WP Popups - WordPress Popup builder](https://wordpress.org/plugins/wp-popups-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-popups-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-popups-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-popups-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-popups-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-popups-lite/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [De Belser Arne](https://wordpress.org/support/users/arnedb/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/create-conversion-action-on-custom-button/#post-13562725)
 * Status: resolved