Title: [Plugin: SimpleModal Login] Redirection
Last modified: August 19, 2016

---

# [Plugin: SimpleModal Login] Redirection

 *  [Isaakwells](https://wordpress.org/support/users/isaakwells/)
 * (@isaakwells)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-simplemodal-login-redirection/)
 * I see you have updated the plugin and I am kind of new to the wordpress back 
   end I know I need to edit the “wp_loginout()” or “$redirect”
 * I just need to know where and what file I need to put this code in.
 * <?php wp_loginout($_SERVER[‘REQUEST_URI’]); ?>
 * Thanks in advance.

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

 *  Plugin Author [Eric](https://wordpress.org/support/users/emartin24/)
 * (@emartin24)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-simplemodal-login-redirection/#post-1688822)
 * It depends on your theme and if you are using widgets or not. Typically it would
   be in your sidebar.php file.
 * If you are using the Meta widget, then you will probably have to delete it and
   put the code in your sidebar.php file. I’ve included examples in the FAQ section–
   let me know if that does not help 😉
 *  Thread Starter [Isaakwells](https://wordpress.org/support/users/isaakwells/)
 * (@isaakwells)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-simplemodal-login-redirection/#post-1688823)
 * Well I put the code in my site and it automatically takes me to the dashboard
   which i do not want I just want the user to stay on the same page.
 *  Plugin Author [Eric](https://wordpress.org/support/users/emartin24/)
 * (@emartin24)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-simplemodal-login-redirection/#post-1688826)
 * Do you have a link?
 *  Thread Starter [Isaakwells](https://wordpress.org/support/users/isaakwells/)
 * (@isaakwells)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-simplemodal-login-redirection/#post-1688827)
 * I had a link that said login yes
 *  Thread Starter [Isaakwells](https://wordpress.org/support/users/isaakwells/)
 * (@isaakwells)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-simplemodal-login-redirection/#post-1688829)
 * I don’t understand the old 0.3 never had this problem with my site. it’s weird.
 *  Plugin Author [Eric](https://wordpress.org/support/users/emartin24/)
 * (@emartin24)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-simplemodal-login-redirection/#post-1688892)
 * I wanted to have a link to your site, to view the issue.
 * 1.0 changed the way redirects were handled, so there may still be some issues
   to iron out.
 *  Thread Starter [Isaakwells](https://wordpress.org/support/users/isaakwells/)
 * (@isaakwells)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-simplemodal-login-redirection/#post-1688950)
 * [http://www.consolealliance.com/](http://www.consolealliance.com/) That’s it.
 *  Plugin Author [Eric](https://wordpress.org/support/users/emartin24/)
 * (@emartin24)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-simplemodal-login-redirection/#post-1688955)
 * Your login link is not correct.
 * Change it from:
    `<a wp-login.php="" redirect_to="/&quot;" class="simplemodal-
   login" ...`
 * To:
 * `<a href="wp-login.php?redirect_to=/" class="simplemodal-login" ...`
 *  Thread Starter [Isaakwells](https://wordpress.org/support/users/isaakwells/)
 * (@isaakwells)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-simplemodal-login-redirection/#post-1688992)
 * Alright well I changed the code to
 * `href="wp-login.php?redirect_to=<?php echo $_SERVER['REQUEST_URI']; ?>" class
   ="simplemodal-login"`
 * And now it works thanks.

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

The topic ‘[Plugin: SimpleModal Login] Redirection’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simplemodal-login.svg)
 * [SimpleModal Login](https://wordpress.org/plugins/simplemodal-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simplemodal-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simplemodal-login/)
 * [Active Topics](https://wordpress.org/support/plugin/simplemodal-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simplemodal-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simplemodal-login/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Isaakwells](https://wordpress.org/support/users/isaakwells/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-simplemodal-login-redirection/#post-1688992)
 * Status: not resolved