Jump to content
Sign in to follow this  
thelobbyist

NRBCOM BuddyPress CSS Questions

Recommended Posts

thelobbyist

Was asked to start a new thread since the last one was getting lengthy. So here are my current questions. Thanks! 1) Is there a way to limit the number of posts shown under "Activity" in the buddypress stuff? I'm showing like 20+ recent posts and its dragging the page way down. Would like to limit this to maybe 3-5. 2) Going through all the buddypress stuff I noticed that all the text below the subnav is black for "Profile", "Messages", "Friends", "Groups", and "Settings". It looks like I could go through and individually set the text color for each item. But I'm wondering if there is an overarching method for making all the text for the stuff under each subnav to white? For example check out: http://www.nickrbrown.com/members/admin/messages/compose/ or http://www.nickrbrown.com/members/admin/settings/ and you can see how all the text around the text entry boxes is black. 3) Under buddypress "Activity" there is a drop down box with the first item in the list being "No Filter". It is here: http://www.nickrbrown.com/members/admin/activity/ How do I shrink this box so that it will re-align itself with the subnav list? Would it be: #buddypress-page #subnav.item-list-tabs{width:}? 4) Finally, I'd like to make the search box above my right sidebar longer. I know I can adjust the width, but I can't seem to get the left side aligned to the left side of the right sidebar. Sorry for all the questions. I keep thinking I'm done and then come across more items and every time I think I have a handle on CSS I can't figure something out. :( The more I use FireBug the more lost I feel like I get. lol I should probably take a class...

Share this post


Link to post
Share on other sites
cmunns

FOr 3 try: ` div.item-list-tabs ul li#activity-filter-select.last { width: 190px; } ` For 4 try: ` .searchform .searchfield { width: 265px; } ` ` .searchform { width:300px; } `

Share this post


Link to post
Share on other sites
thelobbyist

Thanks! Any thoughts on #1 or #2?

Share this post


Link to post
Share on other sites
thelobbyist

For #2 that's not a problem. If you want to email me at nick@nickrbrown.com I'd be happy to create a guest log in for you. I'm having the same problem with the post title links and "view" link on the posts under the activity section of buddypress. I'd like them to go gray instead of black when hovering. But that's a tricky one too.

Share this post


Link to post
Share on other sites
thelobbyist

Oh, and #1 works perfectly. But if anyone is wondering you are modifying the activity-loop.php file within the platformpro theme and not the file in the buddypress plugin folder. /root/wp-content/themes/platformpro/activity/activity-loop.php

In your activity-loop.php probably at line NO. 4, add this code <?php $args = array (bp_ajax_querystring( 'activity' ), 'max' => 5); ?> Now replace this <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?> With <?php if ( bp_has_activities($args) ) : ?> That??™s it. It will now show only 5 items. Change ???5??? to any number you like.
From here: http://blogcastor.com/extend/tips-tricks/how-to-limit-activity-items-in-buddypress/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×