Skip to:
Content
Pages
Categories
Search
Top
Bottom

Small Avatar Size in Activity Stream


  • blastblast
    Participant

    @blastblast

    Hi all,

    So I noticed that for different activity the avatar of the user will be different size.
    For example, a post in the forum, or a status update will show a larger avatar of the user. While a notice saying a “user ‘xyz’ became a registered member” will show a smaller avatar.

    I see how this makes sense as bp perhaps deem some activity as more important but I would like to change it to the size of the larger avatar.

    A rough measurement with a virtual ruler shows that the larger avatar is 50x50px and the smaller avatar is 20x20px I think.

    Ideally I would like to make this change in the child theme’s css – any guidance appreciated.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)

  • danbp
    Moderator

    @danbp


    shanebp
    Moderator

    @shanebp

    >deem some activity as more important

    I never understood that either.
    It seems arbitrary and esoteric.

    Try this:
    Create a template over-ride of
    bp-templates\bp-legacy\buddypress\members\members-loop.php

    And replace
    bp_member_avatar()
    with
    bp_member_avatar('type=full&width=50&height=50')


    TulsaREIA
    Participant

    @tulsareia

    I had the same problem and I added this CSS to my theme in the Custom CSS section, if you don’t have Custom CSS section, you can create a child theme. I don’t know if its buddypress or a plugin but some avatars in “activity” are set as “mini” making the 20×20 avatar. It may look good in replies but not in the situation you described. Here is the custom CSS I used to keep the mini avatar at 50×50 like the rest of my activity stream.

    #buddypress .activity-list li.mini .activity-avatar img.avatar, #buddypress .activity-list li.mini .activity-avatar img.FB_profile_pic {
    height: 50px;
    margin-left: 0px;
    width: 50px;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Small Avatar Size in Activity Stream’ is closed to new replies.
Skip to toolbar