1. Home
  2. Knowledge Base
  3. How to Align the Registration Form to the Center

How to Align the Registration Form to the Center

Introduction

By default, the platform does not provide an option to center-align the registration form on the registration page. This layout adjustment requires custom work. However, using a CSS snippet, you can align the registration form to the middle of the page for a cleaner and more balanced appearance.

Custom Workaround

Follow the steps below to center-align the registration form:

  1. Go to BuddyBoss > Theme Options
  2. Under Custom Codes, enable CSS
  3. Append the following code:
body.buddypress.register.login-split-page .login-split { 

    width: 100%; 

} 

body.buddypress.register.login-split-page #primary { 

    margin-left: 0; 

    position: absolute; 

    right: 50%; 

    transform: translate(50%, 0); 

} 

body.buddypress.register .register-section-logo.private-on-div { 

    text-align: center !important; 

}
  1. Click Save changes

This will center the registration form horizontally on the registration page.

Note: Any modifications are considered as custom work already. Know more about our Support policy here: https://buddyboss.com/support-policy/

Troubleshooting and FAQs

Q: Will this affect the login page layout?

A: No. This CSS specifically targets the registration page and will not impact the login page layout.

Q: The registration form is still not centered. What should I do?

A: Clear your site cache and browser cache. If the issue persists, submit a ticket to the support team for assistance.

Q: Does this work on mobile devices?

A: Yes. The CSS works across screen sizes, but minor adjustments may be needed depending on your custom styling.

Q: Will this conflict with custom themes or child themes?

A: It may conflict if your theme or child theme overrides registration page styles. In that case, additional CSS specificity may be required.

Q: Can I adjust the alignment further (e.g., add spacing or width)?

A: Yes. You can modify the width, margin, or transform values in the CSS to better match your desired layout.

Was this article helpful?

Subscribe to Our Newsletter

Stay In Touch

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

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

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