1. Home
  2. Knowledge Base
  3. Customizations
  4. PHP Functions
  5. How to Change “Back to (Site Name)” on the Password Reset Page to “Back to Login”

How to Change “Back to (Site Name)” on the Password Reset Page to “Back to Login”

Introduction

By default, the WordPress password reset page displays a “Back to (Site Name)” link. BuddyBoss does not currently provide a built-in option to change this text to “Back to Login”.
This guide explains how you can change “Back to (Site Name)” on the password reset page.

Custom Workaround

Before proceeding, make sure you have a complete site backup.

  1. Go to Appearance > Theme Editor in your WordPress admin dashboard.
  2. Under Select theme to edit, choose your active theme (preferably BuddyBoss Child Theme), then click Select.
  3. From the Theme Files list, click Theme Functions (functions.php).
  4. Paste the following code just before the closing PHP tag (?>):

function my_password_reset_footer() { ?>

    <p class=”login”>

        <a href=”<?php echo wp_login_url(); ?>”>

            <?php _e(‘Back to Log in’, ‘textdomain’); ?>

        </a>

    </p>

<?php }

add_action(‘password_reset_footer’, ‘my_password_reset_footer’);

  1. Click Update File to save your changes.

Note: Modifications are typically considered custom work, but we are making an exception in this case. Please review the BuddyBoss Support Policy.

Troubleshooting and FAQs

Q: The link still says “Back to (Site Name)”.
A: Make sure the code was added to the active theme’s functions.php file and that there are no syntax errors. Using a child theme is strongly recommended.

Q: Can I change the text to something else, like “Return to Login Page”?
A: Yes. Replace Back to Log in in the code with your preferred text.

Q: Will this affect other login-related pages?
A: No. This change only affects the password reset page footer.

Q: Is this safe to use with future BuddyBoss updates?
A: If added to a child theme, it will remain intact. Changes added to a parent theme may be overwritten during updates.

Q: Is this covered by BuddyBoss support?
A: No. This modification is considered custom work. Please review the BuddyBoss Support Policy for more details.

Was this article helpful?

Related Articles

Subscribe to Our Newsletter

Stay In Touch

Subscribe to our Newsletter, and we’ll send you the latest news from BuddyBoss

  • This field is hidden when viewing the form
  • This field is for validation purposes and should be left unchanged.

To speak to our Agency consultant, fill in the form found at our Contact Page.

  • Get Started

    Enter your name and email address to get started with your project...

  • This field is for validation purposes and should be left unchanged.