To customize the home page for specific users, you can follow these steps:
- Copy the file from the main theme:
buddyboss-theme/buddypress/members/single/home.php
- Paste it into your child theme, maintaining the same folder structure:
buddyboss-theme-child/buddypress/members/single/home.php
Once you’ve done this, you can customize the file or add text/links as needed.
If you want to apply these changes only for specific users, you can use the
bp_displayed_user_id()
function to check the member ID. Then, include the text or link within conditional if blocks to ensure the content is displayed only for certain users.To get the user ID, you can use the following method:
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.