Skip to:
Content
Pages
Categories
Search
Top
Bottom

adding / modifing the budypress member page links


  • dromy
    Participant

    @dromy

    how can I had a #main to the buddypress members link/page?

    I would like to add to all members page an encore #main. but there is no way to do so on the panel so I thought of adding it to the buddypress costume page URL generate section on server side.

    what do you think of that and how can I do so?

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

  • danbp
    Participant

    @danbp

    Will this help you ? Add it to your theme’s functions.php

    
    function bpfr_my_directory_setup_nav() {
    	echo'<li><a href="#main">Encore</a></li>'; // link to what you want
    }
    add_action( 'bp_members_directory_member_types', 'bpfr_my_directory_setup_nav' );

    dromy
    Participant

    @dromy

    so, just to make this clearer to me:
    I add to the [theme]/buddypress/function.php this:

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

    Did I get it right?


    dromy
    Participant

    @dromy


    dromy
    Participant

    @dromy

    don’t know what happened to this page.

    can you read my reply?


    dromy
    Participant

    @dromy

    after tring it.. not working.
    the path is always ../members/[username]/

    missing the #main at the end.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘adding / modifing the budypress member page links’ is closed to new replies.
Skip to toolbar