BuddyBoss Home – Web › Support Forums › Themes › OneSocial theme › Members and groups directory widget area
- This topic has 5 replies, 3 contibutors, and was last updated 8 years, 7 months ago by Anonymous.
Question
March 18, 2016 at 3:45 am #63759@anjaHi,
I’m using now OneSocial since Tuesday and I’m missing in the widget area the members directory and the group directory widget area like in the Boss-theme. I will need this also for my community.
Is it possible to get this also for OneSocial-theme?
Thank you for your replay, best regards, Anja
Answers
March 23, 2016 at 3:18 am #64770@alyssa-buddyboss
AlyssaParticipantHi @anja,
I hope you’re doing well. Firstly, I’d like to apologize for the delay in response. Thank you for your patience all this while.
OneSocial theme has full width templates for Members and Groups directories, hence we removed those widget areas here.
But you can add those widget areas in your child theme. Add following code in
functions.php
in child theme.function create_custom_widget_areas() { register_sidebar( array( 'name' => 'Members → Directory', 'id' => 'members', 'description' => 'The Members Directory widget area. Right column only appears if widgets are added.', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>' ) ); register_sidebar( array( 'name' => 'Groups → Directory', 'id' => 'groups', 'description' => 'The Groups Directory widget area. Right column only appears if widgets are added.', 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>' ) ); } add_action( 'widgets_init', 'create_custom_widget_areas' );
You also need to update members and groups directory templates accordingly.
I hope the above is useful to you.
Thanks
March 24, 2016 at 4:00 am #64966@anjaHi @sagar,
thank you very much for your response and your help.
I have added the code in function.php, now the widget areas are visible on dashboard, but I don’t know how to update the members and group templates. Could you please tell me what I have to do in these templates?
Thank you in forward, best regards,
AnjaMarch 24, 2016 at 5:20 am #64982@
AnonymousHi @anja
It will need template customization along with custom css.
If you are not comfortable with BuddyPress template files, Please use your developer to edit them.
You can get further details for the BuddyPress template files here.BuddyPress codex: https://codex.buddypress.org/
BuddyPress support forum: https://buddypress.org/support/Regards
Varun DubeyMarch 24, 2016 at 7:10 am #65000@anjaHi @vapvarun,
thank you for your fast reply! I will try it.
Best regards,
AnjaMarch 28, 2016 at 1:26 pm #65702@
AnonymousHi @anja
This topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help.
Regards
Varun Dubey
- The question ‘Members and groups directory widget area’ is closed to new replies.