BUDDYBOSS WEB

Your community, courses and memberships on your own website.

BUDDYBOSS APP

Your own branded app on iOS and Android.

DONE FOR YOU

We build, launch and run it for you.

BuddyBoss website and mobile app

Web + App Done For You

$4,999 flat

Web Scale + Done For You Web

App Launch + Done For You App

PRICING

Web Pricing

Launch, Scale and Done For You Web.

From

$199

first year

App Pricing

Solo, Launch and Done For You App.

From

$499

first year

SITE + APP

Web + App Done For You

Your site and your app, built and run for you.

$4,999

flat, never rises

How to Increase Upload Limit for Cover Photos and Avatar in BuddyBoss

Updated

Introduction

BuddyBoss sets a maximum file size for avatars and cover photos. If you want to increase upload limit for cover photos and avatar, you can limit with a custom function. This guide explains how you can raise the upload limit for both cover photos and avatars.

Custom Workaround

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

  1. Go to Appearance > Theme Editor in your WordPress admin dashboard.
  2. Under Select theme to edit, choose your active theme (preferably BuddyBoss Child Theme), then click Select.
  3. From the Theme Files list, click Theme Functions (functions.php).
  4. Paste the following code just before the closing PHP tag (?>):
function bbp_cover_image_file_size( $fileupload_maxk, $type ) {
    if ( 'avatar' == $type ) {
        $fileupload_maxk = 10485760; // in bytes, 10MB
    }

    if ( 'cover_image' == $type ) {
        $fileupload_maxk = 10485760; // in bytes, 10MB
    }

    return $fileupload_maxk;
}
add_filter( 'bp_attachments_get_max_upload_file_size', 'bbp_cover_image_file_size', 10, 2 );
  1. Click Update File to save your changes.

Note: Modifications are typically considered custom work, but we are making an exception in this case. Please review the BuddyBoss Support Policy.

This will increase the upload limit to 10MB. You can adjust this value to your preference. To convert MB to bytes, you can use a converter such as: https://www.gbmb.org/mb-to-bytes.

Troubleshooting and FAQs

Q: The upload limit did not increase.
A: Ensure there is no server-level PHP upload limit overriding this change. Check upload_max_filesize and post_max_size in your php.ini.

Q: Can I set different limits for avatars and cover photos?
A: Yes. Adjust the respective values in the code for ‘avatar’ and ‘cover_image’.

Q: Will this affect all users or only new uploads?
A: This affects all users who upload avatars or cover photos after the code is applied.

Q: Can I revert this change?
A: Yes. Remove the code from functions.php and save the file.

Q: Who can I contact for further assistance?
A: Please review the BuddyBoss Support Policy or consult a developer.

Was this article helpful?

Subscribe to Our Newsletter

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

Can’t find the answer you’re looking for?

Our support team is here to help with anything the docs don’t cover.