Avatars in the list of groups
- 
		How to change the resolution, avatar, the list of groups? 
 when I changed the css, image displays poorly ;/
- 
		
			
You can set new widths using define (constants) or by feeding width/height parameters on the avatar function calls in the templates – The BP codex should have examples Only use CSS if you’re reducing the dimensions but only if slightly as you’re still calling a larger size image where it may not be needed. I changed the size of the code groups-loop.php 
 it did not work, which files I have to edit?Which files have you tried to edit? The standard file has this to generate the avatars: bp_group_avatar( ‘type=thumb&width=50&height=50’ ) You can change type to ‘full’ and/or change the sizes , do so in a child theme copy of the file though to preserve your changes . http://pastebin.com/E4SqsizF groups-loop.php 
 Css
 `.messages.bp-wrapper .avatar,
 .bp-wrapper .thread-avatar .avatar,
 .item-list li .avatar
 .bp-wrapper #whats-new-avatar .avatar { width: 50px; height: 50px; }
 .bp-wrapper .item-list div.activity-avatar img,
 .widget .swa-activity-list div.swa-activity-avatar img {
 float: left;
 width: 100px;
 height: 100px;
 margin: 3px 12px 3px 3px;
 }`And the avatar is displayed for a resolution of 35×35 🙂 I do not understand this ;/ @Hugo 
 I’m sorry,i wrote it incorrectly. Avatar displays in resolution 100×100, but “buddypress” while addition changes its resolution in 35×35 in miniatures and because of that the picture displays very unintelligibly@Hugo 
 Mayby in the database can change something?ok it’s working, you can close the topic 🙂 
 problem was the file “/ wp-content/plugins/bp-template-pack/bpt-functions.php”@Hugo 
 thank you for your help 🙂But again, does not work, only fixed the avatar is displayed in groups and profil 128×128, the sections “THUMB” profiles are displayed in 35×35 
 I give up, I do not know what’s going onFor anyone wanting to do this I figured it out. 
 Step 1: Go to your child theme and find /groups/groups-loop.php find the code that says<div class="item-avatar"> <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=45&height=45' ); ?></a> </div>Step 2: 
 You will replace that code with “group-header” code found here(groups/single/group-header.php)<div id="item-header-avatar"> <a href="<?php bp_group_permalink(); ?>" title="<?php bp_group_name(); ?>"> <?php bp_group_avatar(); ?> </a> </div><!-- #item-header-avatar -->That worked for me. Probably not the best route to altering it if you want to do a lot of CSS modifications to the “Group Forum Listing.” But if you want to just change the size to something larger this works. 
- The topic ‘Avatars in the list of groups’ is closed to new replies.