6

(in WordPress)I am wondering where to edit the BP templates - should I edit the core template files(in wp-content/plugins/buddypress) or is there a way to somehow make your own BuddyPress theme ?

Thanks.

jave.web
  • 13,880
  • 12
  • 91
  • 125

2 Answers2

10
  • Start by adding a Child Theme if you haven't done so already.

  • Read the Template Hierarchy link like slaFFik suggested.

  • Add a directory 'buddypress' to your child theme.

  • Copy the core template files you want to edit from wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/(XXX/YYY/)zzz.php into themes/yourchildtheme/buddypress/(XXX/YYY/)zzz.php

If you edit the core files directly your changes could be lost when you update BP.

Koen de Bakker
  • 390
  • 1
  • 12
  • 5
    Thanks, very helpful. Something I didn't quite get from the notation above, until I did a bunch of trial and error is that one must create all the subdirectories in the path to your desired template under `/bp-legacy/buddypress/` so if you want to modify `plugins/buddypress/bp-templates/bp-legacy/buddypress/members/registration.php` you need to copy it to `themes/yourtheme/buddypress/members/registration.php` Just in case anyone else anyone gets confused like I did. – neanderslob Sep 09 '14 at 22:02
2

Read this tutorial - Template Hierarchy (Single Member Pages)

Slava Abakumov
  • 698
  • 6
  • 17