Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding line to Buddypress registration page


  • IngeB1983
    Participant

    @ingeb1983

    Hi there,

    I’d like to personalise my registration page a bit more. I want to achieve this:

    What I want

    What I get is this:

    Top of page on the right

    What I have done so far:

    1. I have adjusted the Buddypress registration.php (child theme) and added this line:

    <?php
    echo "Hello World!";
    ?>

    pretty much anywhere to test where it would show up.
    Result: image number 2.

    2.
    Created a custom template (copy of page.php) for the registration page and again added this code:

    <?php
    echo "Hello World!";
    ?>

    to see if it would do anything.
    Result: nothing.

    Can anyone tell me where to put what code to get a line of text on the bottom of the buddypress registration page? I’d like to add a link there to terms & conditions.

    Thanks in advance everybody!

Viewing 9 replies - 1 through 9 (of 9 total)

  • Henry Wright
    Moderator

    @henrywright

    That would be buddypress/members/index-register.php. See the BuddyPress Template Hierarchy article for more details.

    Ref: https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/


    IngeB1983
    Participant

    @ingeb1983

    Thank you, Henry, I did not know this.

    I’ll give this a test asap.


    IngeB1983
    Participant

    @ingeb1983

    So I tested this out. I read the posts and (think) I understand the hierarchy.

    So i have made an exact copy of register.php, named it index-register.php and placed it in the appropriate directory.
    Now, the line is indeed showing up at the bottom, but it also lost all the CSS / Styling.

    How it looks now

    Is there something I am overlooking?

    You don’t really need to be looking at that codex page, this ought to be a simple overload of templates, i.e copy register, from BP to your theme and edit as required. If you start to work with the extended advanced hierarchy templates you have to create full standalone templates i.e each must contain header and footer includes (hence why you appear to have lost styling, no head element for your document).


    Henry Wright
    Moderator

    @henrywright

    As Hugo points out, index-register.php should be an entire document (with a header and footer). The template you copied (register.php) is what’s known as a “partial” and is usually included within a document.


    IngeB1983
    Participant

    @ingeb1983

    @hnla & @henrywright

    Thank you both very much for your time and help on this topic. It took me a little figuring out but I managed :). I had to seperately call header & footer and place some div from the page.php file into it. After that, it let me add any line I wanted.

    Thanks again, been a big a help!


    honet
    Participant

    @honet

    Hi there are you able to post your page code so I may take a look. I have followed the same method for my registration page, but am faced with the header and footer issue exactly like you. I cannot seem to make it work and would love a few tips on this!


    IngeB1983
    Participant

    @ingeb1983

    Hi @Honet,

    I tried pasting it but it didn’t quite work. (Was too long and it cut a part)

    If you give me your email address, I can send it to you.

    Regards,
    Inge


    honet
    Participant

    @honet

    hone@supranova.net

    Thanks much!

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Skip to toolbar