Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding a Sign Up button

  • Avatar of gibbyesl
    gibbyesl
    Member

    @gibbyesl

    Hi

    Where the text

    To start connecting please log in first. You can also create an account.

    I would like to add a SIGN UP button under this text…

    Please can you tell me how I would do this

    Thanks

    Gibby

Viewing 9 replies - 1 through 9 (of 9 total)
  • Avatar of gibbyesl
    gibbyesl
    Member

    @gibbyesl

    Hi

    I have no idea what I am doing but I found this line in the sidebar.php

    <?php printf( __( ‘ You can also create an account.’, ‘buddypress’ ), site_url( BP_REGISTER_SLUG . ‘/’ ) ) ?>

    I have an image I want to use for users to click on and add it BELOW this text

    I assume I can just copy this above line and add the correct code to display the image and paste it below this line – that’s what I need some help with :-) what is the correct code / path to the image

    Thanks

    Gibby

    Avatar of abcde666
    abcde666
    Participant

    @erich73

    good question.

    Am also interested how to get a button instead of the link “create an account”.

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    If you’re going to be modifying a template file, make sure you’ve created a child theme. Then, copy over sidebar.php to your theme’s directory and make your changes there.

    This will ensure your changes will not break when you upgrade BP.

    The “button” is simply a CSS class, so if you use the following in sidebar.php:

    <a href="<?php echo bp_get_signup_page(); ?>" class="button">Signup</a>

    This will give you the same look as the register button.

    Avatar of abcde666
    abcde666
    Participant

    @erich73

    Hi Ray,

    which sidebar.php file you are talking about ?

    1)…themes / default / sidebar.php

    or

    2)….plugins / buddypress / bp-themes / bp-deault / sidebar.php

    or

    3)…..wp-content / themes / home / sidebar.php

    Also, where do I change the text “To start connecting please log in first…….” ?

    Many thanks !

    Erich

    Avatar of jivany
    jivany
    Participant

    @jivany

    @Erich: sidebar.php from the BP bp-default theme. #2 on your list. Everytime someone refers to a theme file to be copied into your child theme, it will be from bp-default.

    Avatar of gibbyesl
    gibbyesl
    Member

    @gibbyesl

    Thanks for the help – works great :-)

    Avatar of Andre
    Andre
    Participant

    @ace2296

    Where do you place the code (<a href="” class=”button”>Signup) in the sidebar.php file?

    Avatar of urducad
    urducad
    Participant

    @urducad

    thanks r-a-y i put it up on my site cadurdu.com successfully

    Avatar of urducad
    urducad
    Participant

    @urducad

    i put it between input type=”hidden” name=”testcookie” value=”1″ and form>

    like that

    input type=”hidden” name=”testcookie” value=”1″ /
    <a href="” class=”button”>Signup
    form>

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

You must be logged in to reply to this topic.