Please read the codex documentation, there are guides there on the theme compatibility and template hierarchy – first port of call should always be the docs.
Got it – doesn’t look like it’s doable in 1.7xx, as according to the codex BP can only use one template for all BP pages. When I upgrade I’ll have another look. Thanks, Hugo!
?
You can use a file named buddypress.php this will be used ahead of page.php if found, you can edit that as much as you’d like.
In BP 1.8 we have extended this to be far more flexible to use component names or actions, etc.
You perhaps needed to read this page or perhaps you did and just haven’t upgraded?
https://codex.buddypress.org/developer/theme-development/template-hierarchy/
That’s what I read – but the way my site is built it uses a lot of partially-customised plugins which all need to interact with each other in non-standard ways, so I don’t want to upgrade them without testing them all together first; I’ll stick with 1.7 for the moment. Thanks again.
@hnla I’ve read the codex and I’m struggling. I wonder if you can help.
I’m trying to edit the registration page. So I’ve copied the existing one and renamed it index-register.php
I’ve tried putting in in various places but it doesn’t seem to make any difference. Where should it be?
@brimfulof
Where are ‘various places’?
In a child theme you would create a new folder called either /community/ or /buddypress/ in that you replicate the structure for folders seen in bp legacy folder in core plugin.
So for a register template you would need /my-theme/buddypress/members/register.php
If you create index-register.php you will need to ensure this template is a full one i.e has get_header() / get_footer() and any other structure for a full template so unless really necessary just edit register.php in your child theme.
Here you go
<?php
// hacks and mods will go here
/**
* Disables BuddyPress' registration process and fallsback to WordPress' one.
*/
function my_disable_bp_registration() {
remove_action( 'bp_init', 'bp_core_wpsignup_redirect' );
remove_action( 'bp_screens', 'bp_core_screen_signup' );
}
add_action( 'bp_loaded', 'my_disable_bp_registration' );
add_filter( 'bp_get_signup_page', "firmasite_redirect_bp_signup_page");
function firmasite_redirect_bp_signup_page($page ){
return bp_get_root_domain() . '/wp-signup.php';
}
?>