Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: I don’t understand the template files

@hnla

Participant

@jblevins1991 You need to explain exactly what you have attempted so that we may understand where things are going wrong, so you need to show exact steps and directories and files created / copied over.

Assuming you have setup WP and BP correctly and have a vanilla instance of BP running under a theme of your choice then:

You create a dir or folder in your themes root e.g /buddypress/ if you want to modify the main activity screen then create /buddypress/activity/ and copy index.php from the plugins bp-legacy dir to this new directory, add some text somewhere in that file so you can see if BP is using that file rather than the version located in bp-legacy.

In our guide the salient issue of what templates and where is covered in this paragraph:

Therefore, you can modify any bp theme compatibility template by copying it over from:

/bp-templates/bp-legacy/buddypress/

To:

/my-theme/community/ or /my-theme/buddypress/

N.B. Inside the subfolder ‘community’ you must preserve the path structure/folders that exist in the BP original /buddypress/ folder so /activity/ must be created to hold index.php or any of the other activity templates.

If you are using a WP theme or theme that is subject to updates you must create a child theme of that theme and do all work in that, this avoids you losing any changes in a theme – guides for creating WP child themes are available on the WP codex.

Skip to toolbar