BuddyBoss Home – Web Support Forums Themes OneSocial theme Members and groups directory widget area

Viewing 6 posts - 1 through 6 (of 6 total)
  • Question

    #63759
    @anja

    Hi,

    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

    #64770

    Alyssa
    Participant
    @alyssa-buddyboss

    Hi @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 &rarr; 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

    #64966
    @anja

    Hi @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,
    Anja

    #64982

    Anonymous
    @

    Hi @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.

    Template Hierarchy

    BuddyPress codex: https://codex.buddypress.org/
    BuddyPress support forum: https://buddypress.org/support/

    Regards
    Varun Dubey

    #65000
    @anja

    Hi @vapvarun,

    thank you for your fast reply! I will try it.

    Best regards,
    Anja

    #65702

    Anonymous
    @

    Hi @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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The question ‘Members and groups directory widget area’ is closed to new replies.