BuddyDev

Search

[Resolved] Add group creation button in profil group tab.

  • Participant
    Level: Initiated
    Posts: 8
    Jean-Philippe on #33539

    Hello everyone,

    From my profil page, I see group tab which contains 2 options (My groups, invitation).
    Now, I’d like to add a group creation button just after “invitation” button. How can I do it please?

    Thanks for your help.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #33542

    Hi,
    Thank you for the question.

    I have posted the code as a blog post here
    https://buddydev.com/add-buddypress-create-group-button-to-user-profile-groups-page-navigation/

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 8
    Jean-Philippe on #33548

    Hello,
    It works good for me.
    Thanks,

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #33550

    You are welcome. I am glad it worked.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 8
    Jean-Philippe on #33568

    Hello Everyone,

    It is a little contribution.

    For youzer users, if you want to display a pen icon before ‘create a group’ option, you can use this css code to do it. Add this one in the custom css panel of your theme.

    
    /*Add pen icon for group creation option*/
    .yz-tabs-list-gradient a#create-group i{
    	background: #ffca6e;
    	background: url(../images/dotted-bg.png),linear-gradient(to left,#f9d423 ,#ff4e50);
    	background: url(../images/dotted-bg.png),-webkit-linear-gradient(right,#f9d423 ,#ff4e50);
    }
    a#create-group i.fa-globe::before{
    	content:"\f303";
    }
    
  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #33575

    Thank you for sharing the css.

    Regards
    Brajesh

The topic ‘ [Resolved] Add group creation button in profil group tab.’ is closed to new replies.

This topic is: resolved