Title: remove popup close button
Last modified: June 15, 2020

---

# remove popup close button

 *  [onyekaxt](https://wordpress.org/support/users/onyekaxt/)
 * (@onyekaxt)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/remove-popup-close-button/)
 * i need to remove the “x” button at the top right of the popup.
    i also want to
   make login compulsory
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremove-popup-close-button%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [onyekaxt](https://wordpress.org/support/users/onyekaxt/)
 * (@onyekaxt)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/remove-popup-close-button/#post-12989650)
 * i want to force login on every page of my site, and once a user logs in / register,
   it stays that way
 *  Plugin Author [xootix](https://wordpress.org/support/users/xootix/)
 * (@xootix)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/remove-popup-close-button/#post-12999862)
 * Add this to your functions.php
 *     ```
       add_action( 'wp_footer', function(){
       	?>
       	<style type="text/css">
       		span.xoo-el-close {
       		    display: none;
       		}
   
       		.xoo-el-modal {
       		    pointer-events: none;
       		}
   
       		.xoo-el-inmodal {
       		    pointer-events: all;
       		}
       	</style>
       	<script type="text/javascript">
       		jQuery(document).ready(function($){
       			$('.xoo-el-login-tgr').trigger('click')
       		})
       	</script>
       	<?php
       } );
       ```
   
 *  Thread Starter [onyekaxt](https://wordpress.org/support/users/onyekaxt/)
 * (@onyekaxt)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/remove-popup-close-button/#post-13000947)
 * thanks.
    kindly tell me where exactly functions.php file is, so i won’t make 
   mistakes
 * best regards

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

The topic ‘remove popup close button’ is closed to new replies.

 * ![](https://ps.w.org/easy-login-woocommerce/assets/icon-128x128.png?rev=1970613)
 * [Login & Register Customizer – Popup | Slider | Inline | WooCommerce](https://wordpress.org/plugins/easy-login-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-login-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-login-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-login-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-login-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-login-woocommerce/reviews/)

## Tags

 * [button](https://wordpress.org/support/topic-tag/button/)
 * [close](https://wordpress.org/support/topic-tag/close/)

 * 3 replies
 * 2 participants
 * Last reply from: [onyekaxt](https://wordpress.org/support/users/onyekaxt/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/remove-popup-close-button/#post-13000947)
 * Status: not resolved