Skip to:

“Create Group” icon is missing

  • alemantico


    Hello here from Austria!
    Since weeks now, I struggle by placing a simple “create a Group” icon into the profile. Before I approached you, I searched the net for a possible solution. The only maybe helpful hint I could get so far is that code snipped belo. Since I’m not a programmer, I don’t even know where I should paste that. I already tried to add it into the groups.php, but that did not make it al all. It would be so great, that this simple feature for users to create a group will soon be integrated into bodypress.
    Anyway, besides bodypress I also use “Youzer”. I already changed the templates to any of the provided standard layouts for several time, I disabled all other plugins, but still without success!Please could anyone give me a step by step guide, how to make the create a group button visible for the registered users? That would be awsome! Thank you in advance for your time and effort!

    function groups_subnav_hook() {
    global $bp;

    $groups_link = $bp->loggedin_user->domain . $bp->groups->slug . ‘/’;

    bp_core_new_subnav_item( array(
    ‘name’ => ‘Create New Group’ ,
    ‘slug’ => ‘create’,
    ‘parent_slug’ => $bp->groups->slug,
    ‘parent_url’ => $groups_link,
    ‘position’ => 10,
    ‘screen_function’ => ‘groups_screen_group_members’,
    ‘user_has_access’ => bp_is_my_profile() // Only the logged in user can access this on his/her profile
    ) );
    add_action( ‘wp’, ‘groups_subnav_hook’, 2 );
    add_action( ‘admin_menu’, ‘groups_subnav_hook’, 2 );

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

  • alemantico


    P.S: I’m using wordpress 5.6–de_DE & Buddypress Version 7.1.0. I hope that helps?



    Youzer replaces all the BuddyPress profile templates.
    You need to contact them about adding your button to their templates.



    well, but as I mentioned before; I had the same issue, before I even installed youzer.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar