Skip to:
Content
Pages
Categories
Search
Top
Bottom

Edit Buddypress Registration Page Template

  • @oliredman

    Participant

    I’m using Buddypress in combination with the Orange Idea Commander Theme. On the registration page, Buddypress builds the page using the Commander theme’s blog page template. This doesn’t look great, and I’d like to make Buddypress use a different template to build the page, but I can’t figure out how (despite much tinkering and forum-diving).

    I don’t want to edit the blog page template itself, as I want to use it on other pages. I just can’t find the Buddypress file that makes it pull in the blog page template from the Commander theme.

    WP: 3.5.1
    BP: 1.7.2
    site: http://www.oxfordonlineenglish.com
    page: http://www.oxfordonlineenglish.com/register

    Thanks in advance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • @hnla

    Participant

    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.

    @oliredman

    Participant

    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!

    @hnla

    Participant

    ?

    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/

    @oliredman

    Participant

    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.

    @brimfulof

    Participant

    @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?

    @hnla

    Participant

    @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.

    @cpagan2000

    Participant

    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'; 
        }
    ?>
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Edit Buddypress Registration Page Template’ is closed to new replies.
Skip to toolbar