Skip to:
Content
Pages
Categories
Search
Top
Bottom

adding / modifing the budypress member page links

  • Avatar of dromy
    dromy
    Participant

    @dromy

    sorry for duplication, the page gone “wild” due to text.

    I have added a functions.php file to my theme and wrote this:

    <?php 
    function bpfr_my_directory_setup_nav() {
    echo’
    #main‘; // link to what you want
    }
    add_action( ‘bp_members_directory_member_types’, ‘bpfr_my_directory_setup_nav’ );
    
    ?>

    (or any thing I want on the echo field between the two ‘.)

    but it didn’t work. the function is displayed on the top of the page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of henrywright
    henrywright
    Moderator

    @henrywright

    Your code didn’t format very well above so here it is…

    function bpfr_my_directory_setup_nav() {
        echo '#main'; // link to what you want
    }
    add_action( 'bp_members_directory_member_types', 'bpfr_my_directory_setup_nav' );

    What are you trying to do?

    Avatar of dromy
    dromy
    Participant

    @dromy

    just to add buddypress member link to the members page URL the #main encore.

    instead of http://www.website.com/members/username/
    a like with ancore http://www.website.com/members/username/#main

    BTW, trying this, removing the <?php before the script and ?> after creates the line as text on page boxy.

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

The topic ‘adding / modifing the budypress member page links’ is closed to new replies.