Introduction
BuddyBoss does not provide a built-in option to prevent users from editing their Nicknames specifically on mobile devices. You can control this behavior using a custom CSS snippet that targets mobile screen sizes only. This guide explains how to prevent users from editing their Nicknames on mobile view.
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:
@media (max-width: 768px) {
#profile-edit-form .field_nickname input {
pointer-events: none;
}
}- Click Save Changes.
Troubleshooting and FAQs
Q: The Nickname field is still editable on mobile.
A: Clear your site cache and browser cache, then reload the page on a mobile device.
Q: Will this affect desktop users?
A: No. The CSS is wrapped in a media query and only applies to screens with a maximum width of 768px.
Q: Can I re-enable editing later?
A: Yes. Simply remove the CSS snippet and save your changes.