Title: Close Button
Last modified: August 30, 2016

---

# Close Button

 *  [TalSurfer](https://wordpress.org/support/users/talsurfer/)
 * (@talsurfer)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/close-button-10/)
 * Hi,
    How can i make the close button alone close the popup. i would like to stop
   the option to close the popup if the screen is clicked outside the popup.
 * Thanks
 * [https://wordpress.org/plugins/icegram/](https://wordpress.org/plugins/icegram/)

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

 *  Plugin Author [Icegram](https://wordpress.org/support/users/icegram/)
 * (@icegram)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/close-button-10/#post-6492129)
 * [@talsurfer](https://wordpress.org/support/users/talsurfer/)
 * You can add below code in message body of popup.
 *     ```
       <script type="text/javascript">
       jQuery.magnificPopup.defaults.modal = true;
       </script>
       ```
   
 * And it will not close after clicking outside the popup(Modal Popup)
 * Hope this helps you.
 * Thanks,
    Sandhya Team Icegram
 *  Thread Starter [TalSurfer](https://wordpress.org/support/users/talsurfer/)
 * (@talsurfer)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/close-button-10/#post-6492234)
 * Thanks for your reply!
    But unfortunately it didnt make a change, clicking outside
   the popup still closes it. any other way??
 *  Plugin Author [Icegram](https://wordpress.org/support/users/icegram/)
 * (@icegram)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/close-button-10/#post-6492246)
 * Hi,
 * Can you please share your website url where popup is configured such that we 
   can look into that.
 * Thanks,
    Nishit Shah Team Icegram
 *  [sheegoggery](https://wordpress.org/support/users/sheegoggery/)
 * (@sheegoggery)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/close-button-10/#post-6492250)
 * Hey,
 * I’m having the exact opposite problem and thought it might be helpful to post.
   I also added the script you mentioned (setting false) and it didn’t change a 
   thing. Is this a conflict with the wordpress theme I’m using (Genesis) or the
   version of my wordpress site?
 * Here’s the test page I’m running it on:
    [http://www.blueosa.com/teacher-training-test-copy/](http://www.blueosa.com/teacher-training-test-copy/)
 *  Plugin Author [Icegram](https://wordpress.org/support/users/icegram/)
 * (@icegram)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/close-button-10/#post-6492257)
 * [@sheegoggery](https://wordpress.org/support/users/sheegoggery/),
 * We have checked this page and Icegram popup is not appear on this page.
    There
   is some conflict with some theme and popup. We will fix this issue in next version
   of Icegram. But for popup to act as modal , i.e “not close after clicking outside
   the popup(Modal Popup)” , you have to add above script in message body of popup.
 * Thanks,
    Sandhya Team Icegram

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

The topic ‘Close Button’ is closed to new replies.

 * ![](https://ps.w.org/icegram/assets/icon-128x128.gif?rev=3469073)
 * [Icegram Engage – Popups, Optins, CTAs & Lead Generation](https://wordpress.org/plugins/icegram/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/icegram/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/icegram/)
 * [Active Topics](https://wordpress.org/support/plugin/icegram/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/icegram/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/icegram/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Icegram](https://wordpress.org/support/users/icegram/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/close-button-10/#post-6492257)
 * Status: not resolved