X

How to Customize the Register Button in WordPress

Snippets by IsItWP

Do you want to customize the Register link on your WordPress login page? If user registration is allowed on your site, you can see a Register link on your login page, just below the sign in box. With our snippet, you can easily change the Register text to any other such as Sign Up.

change register to sign-up login page

Instructions:

All you have to do is add this code to your theme’s functions.php file or in a site-specific plugin:

add_filter(  'gettext',  'register_text'  );
add_filter(  'ngettext',  'register_text'  );
function register_text( $translated ) {
     $translated = str_ireplace(  'Register',  'Sign Up',  $translated );
     return $translated;
}

Note: If this is your first time adding code snippets in WordPress, then please refer to our guide on how to properly copy / paste code snippets in WordPress, so you don’t accidentally break your site.

If you liked this code snippet, please consider checking out our other articles on the site like: 62 best free WordPress blog themes or 7 best WordPress contact form plugins.

Comments   Leave a Reply

  1. Thanks! Worked great.

    1. Glad it helped, Elliott!

  2. Austine Kaycii May 26, 2017 at 7:10 am

    God bless you. This sure saved me.
    Thanks!

  3. Dante Mendiola Angeles February 24, 2014 at 9:45 pm

    can i ask how to make the “sign up” word bigger and bold font? and the “lost password” be smaller. thank you very much for the help.

  4. Thanks for this 🙂 really save me a lot of time.

    1. No problem Jen, glad I could help!

      1. Hello Kevin,

        Would you plase help me change “Lost your password?” text too?

        Thanks alot.

        1. I have a snippet that should help you out with that.

          http://wpsnipp.com/index.php/functions-php/remove-the-lost-your-password-link/

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!