Title: close window after logging in
Last modified: August 21, 2016

---

# close window after logging in

 *  Resolved [RolandOfEld](https://wordpress.org/support/users/rolandofeld/)
 * (@rolandofeld)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/close-window-after-logging-in/)
 * hi there
 * i am currently integrating LoginRadius’ social login with the Disqus single sign
   on commenting system, my questions are as follows:
 * 1. I have a window which loads wordpress/loginradius login interace. I would 
   like for the window to close after successfully logging in as disqus requirs 
   the window to be closed for the logged in user to be able to comment. At the 
   moment i have to manually close the window which is not ideal for users.
    I have
   tried some java script code but have not been able to achieve what i need.
 * 2. When using loginradius social networks to login, a small popup window is shown
   to authenticate the user to the specified social network. Am i able to NOT display
   this information in a popup window but instead the parent window?
    I would like
   to be able to do this for one page on my site only, not the whole site. If this
   is possible it may be the answer to my problem in question 1
 * I hope this makes sense, thankyou as always
 * [https://wordpress.org/plugins/loginradius-for-wordpress/](https://wordpress.org/plugins/loginradius-for-wordpress/)

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

 *  Plugin Author [loginradius](https://wordpress.org/support/users/loginradius/)
 * (@loginradius)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/close-window-after-logging-in/#post-4618199)
 * Hi RolandOfEld,
 * This feature is available with premium plan only. Please drop an email to [sales@loginradius.com](https://wordpress.org/support/topic/close-window-after-logging-in/sales@loginradius.com?output_format=md)
   to get this premium feature.
 * Hope this helps!
    Do let us know if you have any other question for us.
 * Regards
    LoginRadius team
 *  Thread Starter [RolandOfEld](https://wordpress.org/support/users/rolandofeld/)
 * (@rolandofeld)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/close-window-after-logging-in/#post-4618203)
 * thanks for replying
    can you tell me which feature this is exactly? i am looking
   at the feature list on the login radius website and nothing is apparent
 *  Thread Starter [RolandOfEld](https://wordpress.org/support/users/rolandofeld/)
 * (@rolandofeld)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/close-window-after-logging-in/#post-4618206)
 * nevermind, solved this one on my own
 *  [kaelaria](https://wordpress.org/support/users/kaelaria/)
 * (@kaelaria)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/close-window-after-logging-in/#post-4618295)
 * I have the same issue with disqus – can you tell me how you solved it? Thanks
 *  Thread Starter [RolandOfEld](https://wordpress.org/support/users/rolandofeld/)
 * (@rolandofeld)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/close-window-after-logging-in/#post-4618296)
 * i used this:
 *     ```
       ?>
       <?php
       if ( is_user_logged_in() ) {
           echo "<script>window.close();</script>";
       }
       ?>
       ```
   
 *  [mienque](https://wordpress.org/support/users/mienque/)
 * (@mienque)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/close-window-after-logging-in/#post-4618313)
 * Hi RolandOfEld,
    Could you please tell me where to put the code? Thanks,

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

The topic ‘close window after logging in’ is closed to new replies.

 * ![](https://ps.w.org/loginradius-for-wordpress/assets/icon-256x256.png?rev=2389582)
 * [Authentication by LoginRadius](https://wordpress.org/plugins/loginradius-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/loginradius-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/loginradius-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/loginradius-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/loginradius-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/loginradius-for-wordpress/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [mienque](https://wordpress.org/support/users/mienque/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/close-window-after-logging-in/#post-4618313)
 * Status: resolved