1. Home
  2. Knowledge Base
  3. Customizations
  4. PHP Functions
  5. How to Change the Create an Account Font Size in the Login Page

How to Change the Create an Account Font Size in the Login Page

Introduction

The BuddyBoss platform does not provide an option to change the font size of the “Create an Account” link on the login page. You can adjust its size by adding a small custom function to your active theme. This guide explains how to how to change the create an account font size in the login 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 a BuddyBoss Child Theme), then click Select.
  3. From the Theme Files list, open Theme Functions (functions.php).
  4. Add the following code just before the closing PHP tag (?>):

function bb_login_custom_css() { ?>

    <style>

        #login > div.login-heading > span > a {

            font-size: 31px; /* Change this value to your desired font size */

        }

    </style>

<?php }

add_action( ‘login_enqueue_scripts’, ‘bb_login_custom_css’ );

  1. Click Update File to save the changes.

Screenshots

Without Code:

A login screen with fields for email address and password options for Remember Me and Forgot Password a blue Log In button and a highlighted Create an Account link in the upper right corner


With Code:

A login and account creation form with fields for email address and password options for Remember Me and Forgot Password a blue Log In button and a Terms of Service link at the bottom

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 font size didn’t change.
A: Ensure the code is added to the active theme’s functions.php file. Clear your browser cache and any caching plugin to see the change.

Q: Can I use any font size?
A: Yes. Replace 31px with your preferred size using px, em, or rem units.

Q: Will this affect other links on the login page?
A: No. This CSS specifically targets the “Create an Account” link.

Q: Can I also change the font color or style?
A: Yes. You can add color, font-weight, font-family, and other CSS properties inside the style block.

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.