Title: Close Popup with button
Last modified: June 16, 2020

---

# Close Popup with button

 *  Resolved [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/close-popup-with-button/)
 * Previously it was possible to close a popup with a button within the popup with
   the #close and the evr-close class.
 * No this is not working anymore. What has changed?
 * Thanks.

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

 *  [jflds](https://wordpress.org/support/users/jflds/)
 * (@jflds)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/close-popup-with-button/#post-12994805)
 * I didn’t change anything to the pop up form/class/css for few weeks. :/ Can you
   email me to troubleshoot this please?
 *  Thread Starter [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/close-popup-with-button/#post-12994822)
 * No it seems the javascript has changed.
 * Now I need to a link with classes previously I could place a link within a div
   with the needed classes.
 * Also my own link is altered with “data-et-has-event-already=”true” during the
   page is loading. this seems to be a counter of the instances for your javascript
   listerners.
 * Also I found out, that my button disappears when I disable the close button option
   for the popup.
 * So it seems its the new script causing the issue.
 *  Thread Starter [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/close-popup-with-button/#post-12994845)
 * To detail it a bit more:
 * Old code:
 *     ```
       <div class="evr-close">
         <a href="#close">close</a>
       </div>
       ```
   
 * New code:
 * `<a href="#close" class="evr-close">close</a>`
 * is altered to:
 * `<a href="#close" clas="evr-close" data-et-has-event-already=”true”>close</a>`
 * This causes my own close button then to be inactive.
 * When I disable the “close-button” option in the popup setup – the close button
   and my own button is gone.
 * Two potential solutions:
 * 1. allow more than one instance of the close link & class
    2. add a second # &
   class combination for an own close button
    -  This reply was modified 5 years, 11 months ago by [polarracing](https://wordpress.org/support/users/polarracing/).
    -  This reply was modified 5 years, 11 months ago by [polarracing](https://wordpress.org/support/users/polarracing/).
 *  Thread Starter [polarracing](https://wordpress.org/support/users/polarracing/)
 * (@polarracing)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/close-popup-with-button/#post-13009952)
 * Solved.
 * I use DiviArea.hide() now. Works fine.
 *  [ausyed](https://wordpress.org/support/users/ausyed/)
 * (@ausyed)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/close-popup-with-button/#post-13201109)
 * Hello [@polarracing](https://wordpress.org/support/users/polarracing/),
 * Glad it has solved the problem 🙂
    Please feel free to get back to us, in-case
   of any problem.
 * Regards,
    Syed from divimode.com

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

The topic ‘Close Popup with button’ is closed to new replies.

 * ![](https://ps.w.org/popups-for-divi/assets/icon-256x256.jpg?rev=2553226)
 * [Popups for Divi](https://wordpress.org/plugins/popups-for-divi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popups-for-divi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popups-for-divi/)
 * [Active Topics](https://wordpress.org/support/plugin/popups-for-divi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popups-for-divi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popups-for-divi/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [ausyed](https://wordpress.org/support/users/ausyed/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/close-popup-with-button/#post-13201109)
 * Status: resolved