1. Home
  2. Knowledge Base
  3. Customizations
  4. CSS
  5. How to Prevent Users from Editing Their Nicknames on Mobile View

How to Prevent Users from Editing Their Nicknames on Mobile View

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

  1. Before proceeding, make sure you have a complete site backup.
  2. Go to BuddyBoss > Theme Options in your WordPress admin dashboard.
  3. Open the Custom Codes section.
  4. Enable CSS.
  5. Add the following CSS code:
@media (max-width: 768px) {

    #profile-edit-form .field_nickname 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 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.

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.