You may want to customize the templates to fit your needs when using the BuddyPress plugin with the Reign theme. This guide outlines how to override the BuddyPress Legacy and Nouveau template files within a child theme.
Overriding BuddyPress Legacy Templates
To override the BuddyPress Legacy templates, create the following directory structure within your child theme and copy the corresponding files from the BuddyPress plugin.
reign-child/
└── buddypress/
├── activity/
│ ├── entry.php
│ ├── index.php
│ ├── post-form.php
│ └── type-parts/
│ ├── content-created-group.php
│ └── content-new-avatar.php
├── groups/
│ ├── groups-loop.php
│ ├── index.php
│ └── single/
│ ├── activity.php
│ ├── cover-image-header.php
│ ├── group-header.php
│ ├── home.php
│ ├── invites-loop.php
│ ├── members.php
│ └── admin/
│ └── manage-members.php
├── members/
│ ├── index.php
│ ├── members-loop.php
│ └── single/
│ ├── activity.php
│ ├── cover-image-header.php
│ ├── home.php
│ └── friends/
│ └── requests.php
Overriding BuddyPress Nouveau Templates
To override the BuddyPress Nouveau templates, create the following directory structure within your child theme and copy the corresponding files from the BuddyPress plugin.
reign-child/
└── bp-nouveau/
├── activity/
│ ├── entry.php
│ ├── comment.php
│ └── type-parts/
│ ├── content-created-group.php
│ └── content-new-avatar.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 BuddyPress plugin directory (wp-content/plugins/buddypress/bp-templates/bp-legacy for Legacy templates and wp-content/plugins/buddypress/bp-templates/bp-nouveau for Nouveau templates) to the corresponding directories in your child theme.
Customize the template files: Edit the copied template files in your child theme to meet your customization requirements.
Activate your child theme: Go to the WordPress dashboard, navigate to Appearance > Themes, and activate your child theme.
By following these steps, you can ensure that your customizations remain intact even when the BuddyPress plugin or the parent Reign theme is updated.
