1. Home
  2. Knowledge Base
  3. Customizations
  4. CSS
  5. How to Prevent Users from Editing Their First Name, Last Name, and Nickname

How to Prevent Users from Editing Their First Name, Last Name, and Nickname

Introduction

BuddyBoss allows users to edit their profile fields by default, including First Name, Last Name, and Nickname. You can prevent users from changing these fields by adding a small CSS snippet to your active theme. This guide explains how to prevent users from editing their First Name, Last Name, and Nickname.

Custom Workaround

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

  1. Go to BuddyBoss > Theme Options in your WordPress admin dashboard
  2. Open the Custom Codes section
  3. Enable CSS
  4. Add the following CSS code:
#profile-edit-form .field_nickname input,

#profile-edit-form .field_first-name input,

#profile-edit-form .field_last-name input {

    pointer-events: none;

}
  1. Click Save 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 fields are still editable after adding the CSS.
A: Clear your browser and site cache, then refresh the profile edit page.

Q: Will this affect other profile fields?
A: No. This CSS only targets the First Name, Last Name, and Nickname fields.

Q: Can I allow users to edit these fields again later?
A: Yes. Remove the CSS snippet and save your changes.

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 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.