• 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

    (@emartin24)

    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

    (@isaakwells)

    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

    (@emartin24)

    Do you have a link?

    Thread Starter Isaakwells

    (@isaakwells)

    I had a link that said login yes

    Thread Starter Isaakwells

    (@isaakwells)

    I don’t understand the old 0.3 never had this problem with my site. it’s weird.

    Plugin Author Eric

    (@emartin24)

    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

    (@isaakwells)

    Plugin Author Eric

    (@emartin24)

    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

    (@isaakwells)

    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.