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.
- Go to BuddyBoss > Theme Options in your WordPress admin dashboard
- Open the Custom Codes section
- Enable CSS
- 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;
}- Click Save Changes
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.