Community (BuddyPress)
Free themeTwo things in BuddyX are built specifically for BuddyPress sites: one Customizer control that rounds member and group avatars, and a widget that shows a logged-in member how much of their profile is filled in.
Where to find it
Appearance > Customize > Community > General. This panel appears only while BuddyPress is active. BuddyPress also adds three directory sidebar options under Appearance > Customize > Sidebar. See Sidebar.
What this section covers
BuddyX styles BuddyPress rather than extending it. Activity streams, groups, member directories, and profile fields all come from BuddyPress itself. What the theme adds on top is:
- A Community panel in the Customizer with a single control, Round Avatars, that switches member and group avatars between round and the theme default.
- A widget called (BuddyPress) Profile Completion that shows the logged-in member their own profile progress, with links into the profile photo, cover photo, and profile edit screens.
Both appear only when BuddyPress is active. Neither one adds profile fields, directories, or any other BuddyPress feature.
Requirements
| Requirement | Notes |
|---|---|
| BuddyPress | Must be active. The Customizer panel, the Round Avatars control, and the widget are all registered only when the BuddyPress class exists. |
| BuddyBoss Platform | Optional. If you run Platform instead of stock BuddyPress, the Profile Completion widget hands the progress calculation to Platform's own function. |
Round Avatars
Location: Appearance > Customize > Community > General
This is the only option in the panel. It appears only while BuddyPress is active.
| Option | Default | What it does | Use it when |
|---|---|---|---|
| Round Avatars | On | Makes member and group avatars round. Off keeps the theme's square avatars. | Turn it off if members upload company logos that circles would clip. |
Show square avatars
- Go to Appearance > Customize > Community > General.
- Switch Round Avatars off.
- Click Publish.
![]()
What happens when you switch it
When the toggle is on, BuddyX adds the CSS class round-avatars to the <body> tag. Every visual change comes from that one class: member avatars, group avatars, and the large avatar on a profile cover header get border-radius: 50%, and the online-status dot is repositioned so it sits on the curve instead of at the square corner.
Turn the toggle off and the class is not added, so those avatars fall back to the theme's normal square rendering. Nothing else on your site changes.
Changing this control reloads the Customizer preview rather than updating it live. That is expected: the setting is a body class, not a color or a font, so the preview has to render the page again to pick it up.
If you set this on an older BuddyX version, your saved value still works. The theme reads the old on / off strings as well as the current 1 / 0 values.
The Profile Completion widget
Location: Appearance -> Widgets, listed as (BuddyPress) Profile Completion with the description "Show Logged in user Profile Completion Progress."
Drop it into any widget area: a BuddyPress sidebar, your blog sidebar, or the footer.
When the widget shows and when it stays silent
This is the part that surprises most site owners, so read it before you file a bug.
The widget prints nothing at all in these four cases:
- The visitor is not logged in. Logged-out visitors never see it. The widget form itself carries the same note on screen: "Note: This widget is only displayed if a member is logged in."
- A logged-in member is looking at someone else's profile. The widget is about your own progress, so it hides itself on another member's profile pages. It still shows for that same member on pages outside a profile, such as a blog sidebar or the home page.
- Nothing is ticked in the widget settings. If you save the widget with no profile field sets and no profile photos selected, it renders nothing, not even the title.
- The member has hit 100% and you ticked "Hide widget once progress hits 100%". Without that box ticked, a completed member keeps seeing a full bar.
In every one of those cases the widget outputs no markup at all, so you get no empty box and no stray title in the sidebar.
What a member sees
- Their own avatar at 200px, linked to their profile.
- A large percentage figure followed by the word "Complete".
- A horizontal progress bar whose filled width matches the percentage.
- A numbered checklist. Each row shows a section name, a completed-of-total count, and a link into the member's profile edit area. Rows carry a completed or incomplete state, plus a separate state for sections where nothing has been filled in yet.
The photo rows link to the member's own change-avatar and change-cover-image screens. The Profile Fields row links to profile/edit/group/0: because that row aggregates every selected field set, it is not a deep link to one particular field group.
Widget settings
| Setting | What it does | Default |
|---|---|---|
| Title | The heading shown above the progress bar. | Default: Complete Your Profile |
| Profile field sets | Checkboxes listing your BuddyPress profile field groups. Tick the ones that should count toward completion. | Default: the field group whose ID is 1 ticked |
| Profile photos | Checkboxes for Profile Photo and Cover Photo. Each ticked item counts as one checklist step. | Default: both Profile Photo and Cover Photo ticked |
| Hide widget once progress hits 100% | When ticked, the widget disappears for members who have finished. | Default: not ticked |
The defaults above are what the form is pre-filled with when you first add the widget. Once you save, your own choices are what apply.
The Profile Photo and Cover Photo checkboxes only appear if the matching upload is enabled in BuddyPress. If you disabled avatar uploads or cover image uploads site-wide, the option is hidden in the form and skipped in the calculation, so it cannot drag anyone's percentage down.
How the percentage is worked out
Completed fields divided by total fields, multiplied by 100, rounded to a whole number. A profile field counts as complete when it has a stored, non-empty value. If nothing countable is selected, the percentage is 0 rather than an error.
Two details worth knowing:
- All your selected field sets are combined into one checklist row labelled "Profile Fields". You can tick several field groups in the widget form, and every field in them is counted, but the checklist shows a single aggregated row rather than one row per group. The row is printed even when you tick no field sets at all, in which case it reads 0/0. Profile Photo and Cover Photo each get their own row.
- Repeater field groups count only the first set. A member who added ten repeated entries does not get a larger denominator than a member who added one.
On BuddyBoss Platform, the widget calls Platform's own bp_xprofile_get_user_profile_progress_data() instead of the theme's calculation, so the numbers match whatever Platform reports elsewhere.
Use Cases
A paid membership community
New members pay, land in the community, and then leave the profile blank, which makes the member directory look empty. Put the Profile Completion widget in the members-directory sidebar and tick "Hide widget once progress hits 100%". New members get a visible nudge with direct links to the fields they are missing, and members who already finished never see the reminder again.
A course site with cohorts
Instructors want a photo and a short bio before a cohort starts so people recognise each other. Tick only the field set holding the bio, plus Profile Photo, and leave Cover Photo unticked. The checklist then asks for exactly two things instead of a long list nobody finishes, and the percentage reaches 100% as soon as the cohort requirement is met.
A professional or vendor network
Round avatars read as social, square avatars read as more formal and match logo-style images better. If your members upload company logos rather than headshots, turn Round Avatars off so logos are not clipped into circles.
For Developers
Setting and body class
| Item | Value |
|---|---|
| Theme mod | buddypress_avatar_style |
| Declared default | on in BuddyPress_Fields.php, registered with WordPress as integer 1 |
| Runtime fallback | buddyx_defaults( 'buddypress-avatar-style' ) returns 'on' |
| Sanitization | Field::sanitize_bool_int(), so the saved value is 0 or 1 |
| Capability | edit_theme_options |
| Body class | round-avatars, added via the body_class filter |
| Panel / section IDs | site_buddypress_panel / site_buddypress_general_section |
Panels, sections, and fields are all declared on init and handed to the Customizer manager together on customize_register at priority 99.
Reading the value yourself:
if ( buddyx_is_truthy( get_theme_mod( 'buddypress_avatar_style', buddyx_defaults( 'buddypress-avatar-style' ) ) ) ) {
// Round avatars are on.
}
Use buddyx_is_truthy() rather than a bare truth test. It treats 1, on, yes, true, and enable as on, and 0, empty string, off, no, false, and disable as off, which is what keeps pre-5.1.0 saved values working.
Widget filters
| Filter | Fires in | Passes |
|---|---|---|
bp_buddyx_user_progress |
BP_Buddyx_Profile_Completion_Widget::get_user_profile_progress() |
The raw progress array: groups, photo_type, total_fields, completed_fields. |
bp_buddyx_user_progress_formatted |
BP_Buddyx_Profile_Completion_Widget::get_user_profile_progress_formatted() |
The template-ready array: completion_percentage plus a groups list of number, label, link, is_group_completed, total, completed. |
Use bp_buddyx_user_progress to change what counts. Use bp_buddyx_user_progress_formatted to change labels, links, or ordering in the checklist without touching the maths. Neither filter runs on BuddyBoss Platform, where the calculation is delegated to Platform.
Files and classes
| Item | Path or name |
|---|---|
| Widget class | BP_Buddyx_Profile_Completion_Widget (a WP_Widget subclass) |
| Widget file | inc/widgets/bp-profile-completion-widget.php, required by buddyx_load_contextual() in functions.php |
| Registration | widgets_init, guarded by class_exists( 'BuddyPress' ) |
| Customizer field | inc/Customizer_Settings/Fields/BuddyPress_Fields.php |
| Panel and section | inc/Customizer_Settings/Component.php |
| Stylesheet source | assets/css/src/buddypress.css |
| Enqueued handle | buddyx-buddypress, loaded on requests that show BuddyPress content (BuddyPress pages, BuddyPress blocks, or a BuddyPress widget in a sidebar) |
The class defines no update() method, so WordPress's default WP_Widget::update() behaviour applies when the widget form is saved.
CSS hooks
The widget markup is plain and stable, so overriding it in a child theme is straightforward:
.wb-bp-profile-completion-wrap- the outer wrapper.wb-bp-user-avatarand.wb-bp-user-link- the avatar and its profile link.wb-bp-completion- the large percentage figure.wb-bp-progress-containerand.wb-bp-progress- the bar track and its filled part (width is set inline).wb-bp-detailed-progressand.wb-bp-single-section-wrap- the checklist and its rows, which also carrycompleted,incomplete, andprogress_not_started.wb-bp-section-number,.wb-bp-section-name,.wb-bp-completed-steps,.wb-bp-total-steps- the parts of a single row
Round avatars are delivered by body.round-avatars selectors in the same stylesheet, so a child theme can target body.round-avatars or body:not(.round-avatars) to add its own variations.
Troubleshooting
The Community panel is missing from the Customizer
Check that BuddyPress is active. The panel, the section, and the Round Avatars control are registered only when it is.
Avatars still look square after turning Round Avatars on
- Click Publish in the Customizer, not just preview.
- Clear any page or CDN cache.
- Check the page source for
round-avatarson the<body>tag. If the class is there, a plugin or child-theme rule is overridingborder-radiuson.avatar. - Confirm the
buddyx-buddypressstylesheet is loading on that page.
The Profile Completion widget does not appear in the widget list
The widget is registered only when BuddyPress is active. Activate BuddyPress, then reload Appearance -> Widgets.
The widget is placed but nothing renders on the front end
Work through the four silent cases above, in order:
- Are you logged in? Open the page in a private window to confirm the difference.
- Are you on another member's profile? Check the same widget area on the home page or a blog post.
- Open the widget settings. Is at least one profile field set or one profile photo ticked?
- Are you already at 100% with "Hide widget once progress hits 100%" ticked? Untick it temporarily to confirm.
The checklist shows one row when I ticked several field sets
That is how it works. Every selected field group is counted, but the field totals are combined into a single row labelled "Profile Fields". Profile Photo and Cover Photo are the only items that get their own rows.
Profile Photo or Cover Photo is missing from the widget form
The corresponding upload is disabled in BuddyPress. Enable avatar uploads or cover image uploads in your BuddyPress settings and the checkbox comes back.
Related
- BuddyX documentation home
- Sidebar - where the BuddyPress directory sidebars sit
- General - layout, loader, and page mapping
- First-time setup
Next: Sidebar - choose the sidebar layout for your activity, members, and groups directories.