Skip to:
Content
Pages
Categories
Search
Top
Bottom

See "Join Group" without Login

  • Avatar of Peter
    Peter
    Participant

    @jianzhi

    Hi,

    I’d like to show one button, “Sign in to join group”, for non-logged in visitors when they access any specific Group page.

    Which template do I need to update? I’ve looks around with the source code, seems hard to find the right place (sorry, I am quite new with BP).

    Thanks for any tips or suggestions.

    Peter

Viewing 1 replies (of 1 total)
  • Hi, add this in functions.php (in themes folder that you use)

    if ( !is_user_logged_in() ) add_action('bp_group_header_actions', 'bp_group_join_button_offline');
    
    function bp_group_join_button_offline() {
    
    	echo '<div class="generic-button group-button public" id="groupbutton"><a href="'.site_url('/wp-login.php').'" title="Sign in to join group" class="group-button join-group">Sign in to join group</a></div>';
    	
    }
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.