• Resolved 3dbounce

    (@3dbounce)


    Hi, I’m trying to add text below my login in the same way as the ‘add a link to the password page’ topic, but having difficulty implementing this. Added the lines you suggested to the functions.php file but nothing changed. I’m not so much of a tech head, so any further explanation would be greatly appreciated.

    Many Thanks

    Aaron

    http://ww.wp.xz.cn/extend/plugins/password-protected/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter 3dbounce

    (@3dbounce)

    Is anyone able to help me with this? I am soooo close to finishing this site and would be very grateful for any advice.

    To elaborate on the above I am trying to add a link that when clicked will open up an email provider in the users screen with my email adress in the ‘to’ field. This is so the user can email me to request the access password to my site.

    If this is too tricky I would settle for just a line of text under the password box on the access page.

    Thanks

    Aaron

    You’ll need to add something like the following to your theme’s functions.php file:

    <?php
    function my_password_protected_after_login_form() {
       echo 'To register please <a href="mailto:[email protected]">contact me</a>';
    }
    add_action('password_protected_after_login_form', 'my_password_protected_after_login_form');
    ?>
    Thread Starter 3dbounce

    (@3dbounce)

    This is perfect Ben. You are a legend!

    Many thanks,

    Aaron

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

The topic ‘Adding text line to Password page’ is closed to new replies.