WordPress.org

Ready to get started?Download WordPress

Forums

SimpleModal Login
simplemodal-login. (4 posts)

  1. MixxMAll
    Member
    Posted 1 year ago #

    Hi,

    I've just installed the Simple Modal Login but I'm not sure how to implement it. Do I need to create a page that acts as a front door to the home page in order for the login box to show up for users?

    Thanks.

    Jamal

    http://wordpress.org/extend/plugins/simplemodal-login/

  2. pankaj.bbs@gmail.com
    Member
    Posted 1 year ago #

    I did the following in my Header.php file. you can style according to your needs. Hope this helps

    <tr>
    <td><?php if (!is_user_logged_in()){ ?>
    <div style="text-align:right;margin-top:10px;">
    <a style="font-size:16px;text-decoration:underline;" href="/wp-login.php?redirect_to=<?php echo $_SERVER['REQUEST_URI']; ?>" class="simplemodal-login">Log In</a> 
    <a style="font-size:16px;text-decoration:underline;" href="/wp-login.php?action=register" class="simplemodal-register">Register</a> </div> <?php } ?></td>
    </tr>

    This will create two links - login and register. On click, this will open a popup where user can enter their details

  3. MixxMAll
    Member
    Posted 1 year ago #

    Hi Pankaj,

    Thanks for the help. I'm not exactly sure how to do this. Would this be done in the WP editor or is this something that will need to be done from my cPanel?

    Thanks.

  4. MixxMAll
    Member
    Posted 1 year ago #

    Hi,

    I think I figured it out. I added the the code that you gave just before the <div id="main"> tag at the end of the Header.php file. I do see the Login and register link but the Register link doesn't work. It does bring up a login box when you click login but there's no way to register.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.