BuddyBoss Home – Web › Support Forums › Themes › OneSocial theme › How to limit row and columns on "members" page?
- This topic has 5 replies, 2 contibutors, and was last updated 8 years, 8 months ago by Alyssa.
Question
March 21, 2016 at 5:46 am #64233@johnnetrHi, the amount of members on default is showed on by 4×5, also 4 on a column and have five rows. How do I change this? for example, I want to show only 3 rows or 2 columns of members, on the “Members” page.
Answers
March 21, 2016 at 8:22 am #64278@johnnetrFor further clarity, I upload a picture
March 22, 2016 at 2:55 pm #64679@johnnetrBump
March 23, 2016 at 2:36 am #64754@alyssa-buddyboss
AlyssaParticipantHi @johnnetr,
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.
You can manage the columns with CSS width. Currently width is
25%
for 4 columns, you can use50%
for two columns.Go to
Dashboard -> BuddyBoss -> OneSocial Theme -> Custom Codes -> CSS
and put following code.body #buddypress .dir-list ul.item-list > li { width: 50%; }
Hope this helps you.
Thanks
March 23, 2016 at 3:48 am #64782@johnnetrHi, I tried to put in height instead of width. Didn’t work. How can I reduce vertical column?
March 24, 2016 at 6:52 am #64996@alyssa-buddyboss
AlyssaParticipantHi @johnnetr,
To reduce vertical column, you will need to reduce number of members.
Copy file
members-loop.php
formOneSocial -> buddypress -> members
theme and paste it in you child theme with same hierarchy.Then search for:
<?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>
and replace it with following code. You can change
per_page
equals to any number as per you requirement.<?php if ( bp_has_members( bp_ajax_querystring( 'members' ).'&per_page=4' ) ) : ?>
Hope this helps you.
Thanks
- The question ‘How to limit row and columns on "members" page?’ is closed to new replies.