Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add link/tab to members overview


  • marmuel
    Participant

    @marmuel

    Hi there,

    I´m using a child theme and I try to add a link in the members/index.php (item-list-tabs).

    		<div class="item-list-tabs" role="navigation">
    			<ul>
    			    <!-- add link to vereinskollegen - mm-->
    				<li  id="members-my"><a href="/vereinfaches/vereinskollegen"><?php printf( __( 'Meine Vereinskollegen' ) ); ?></a></li>
    				<li  id="members-all"><a href="<?php bp_members_directory_permalink(); ?>"><?php printf( __( 'Alle Mitglieder' ) ); ?></a></li>
    				
    				<?php if ( is_user_logged_in() && bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    					<li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/'; ?>"><?php printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li>
    				<?php endif; ?>
    
    				<?php do_action( 'bp_members_directory_member_types' ); ?>
    
    			</ul>
    		</div><!-- .item-list-tabs -->

    The link appears, but nothing happens.
    I cannot jump to from /vereinfaches/members/ to vereinfaches/vereinskollegen/ (new link, simple wordpress-page). If I click on the link in “inspect element” of the Browser, it works perfectly.

    Browser: Chrome Actual Versions BP and WP on a local machine

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

  • r-a-y
    Keymaster

    @r-a-y

    I think the AJAX code in BuddyPress might be interfering with your link.

    Try adding the “no-ajax” class to your custom link and see if it works:

    <<li id="members-my"><a class="no-ajax" href="/vereinfaches/vereinskollegen"><?php printf( __( 'Meine Vereinskollegen' ) ); ?></a></li>


    marmuel
    Participant

    @marmuel

    Thank you @r-a-y,
    unfortunately, it doesn´t work. It only loads the “all members”-page.
    It still loads admin-ajax.php.
    Any other tips?

    Cheers
    Marco

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add link/tab to members overview’ is closed to new replies.
Skip to toolbar