Customizing BuddyBoss Templates

Get Started

When using the BuddyBoss platform with the Reign theme, you may want to customize the templates to fit your needs. This guide outlines how to override the BuddyBoss Platform template files within the Reign theme.

Overriding BuddyBoss Platform Templates

To override the BuddyBoss Platform templates, create the following directory structure within your theme and copy the corresponding files from the BuddyBoss Platform plugin.

Directory Structure

reign-child/
└── bb-buddypress/
    ├── activity/
    │   └── entry.php
    ├── groups/
    │   ├── groups-loop.php
    │   └── single/
    │       ├── cover-image-header.php
    │       ├── home.php
    │       └── members-loop.php
    ├── members/
    │   ├── members-loop.php
    │   ├── reign-register.php
    │   └── single/
    │       ├── cover-image-header.php
    │       ├── home.php
    │       ├── notifications.php
    │       ├── profile.php
    │       ├── settings.php
    │       └── friends/
    │           └── requests.php
    │       └── notifications/
    │           └── notifications-loop.php
    │       └── profile/
    │           └── profile-loop.php

Steps to Override

  1. Copy the template files: Copy the desired template files from the BuddyBoss Platform plugin directory (wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau) to the corresponding directories in your theme.
  2. Customize the template files: Edit the copied template files in your theme to meet your customization requirements.

Example File Paths

  1. Activity Entry Template:
    • Original Path: wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/activity/entry.php
    • New Path: reign-child/bb-buddypress/activity/entry.php
  2. Groups Loop Template:
    • Original Path: wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/groups/groups-loop.php
    • New Path: reign-child/bb-buddypress/groups/groups-loop.php
  3. Groups Single Cover Image Header Template:
    • Original Path: wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/groups/single/cover-image-header.php
    • New Path: reign-child/bb-buddypress/groups/single/cover-image-header.php
  4. Groups Single Home Template:
    • Original Path: wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/groups/single/home.php
    • New Path: reign-child/bb-buddypress/groups/single/home.php
  5. Groups Single Members Loop Template:
    • Original Path: wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/groups/single/members-loop.php
    • New Path: reign-child/bb-buddypress/groups/single/members-loop.php
  6. Members Loop Template:
    • Original Path: wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/members/members-loop.php
    • New Path: reign-child/bb-buddypress/members/members-loop.php
  7. Reign Register Template:
    • Original Path: wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/members/reign-register.php
    • New Path: reign-child/bb-buddypress/members/reign-register.php
  8. Members Single Cover Image Header Template:
    • Original Path: wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/members/single/cover-image-header.php
    • New Path: reign-child/bb-buddypress/members/single/cover-image-header.php
  9. Members Single Home Template:
    • Original Path: wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/members/single/home.php
    • New Path: reign-child/bb-buddypress/members/single/home.php
  10. Members Single Notifications Template:
    • Original Path: wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/members/single/notifications.php
    • New Path: reign-child/bb-buddypress/members/single/notifications.php
  11. Members Single Profile Template:
    • Original Path: wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/members/single/profile.php
    • New Path: reign-child/bb-buddypress/members/single/profile.php
  12. Members Single Settings Template:
    • Original Path: wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/members/single/settings.php
    • New Path: reign-child/bb-buddypress/members/single/settings.php
  13. Members Single Friends Requests Template:
    • Original Path: wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/members/single/friends/requests.php
    • New Path: reign-child/bb-buddypress/members/single/friends/requests.php
  14. Members Single Notifications Loop Template:
    • Original Path: wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/members/single/notifications/notifications-loop.php
    • New Path: reign-child/bb-buddypress/members/single/notifications/notifications-loop.php
  15. Members Single Profile Loop Template:
    • Original Path: wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/members/single/profile/profile-loop.php
    • New Path: reign-child/bb-buddypress/members/single/profile/profile-loop.php

By following these steps, you can ensure that your customizations remain intact even when the BuddyBoss Platform plugin or the parent Reign theme is updated.

Update on May 22, 2024