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
- 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. - Customize the template files: Edit the copied template files in your theme to meet your customization requirements.
Example File Paths
- 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
- Original Path:
- 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
- Original Path:
- 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
- Original Path:
- 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
- Original Path:
- 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
- Original Path:
- 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
- Original Path:
- 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
- Original Path:
- 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
- Original Path:
- 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
- Original Path:
- 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
- Original Path:
- 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
- Original Path:
- 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
- Original Path:
- 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
- Original Path:
- 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
- Original Path:
- 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
- Original Path:
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.
