[Resolved] Round avatar

Home Forums Support [Resolved] Round avatar

Home Forums Support Round avatar

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #150713
    Oleg

    Hello!
    By default GeneratePress, all avatars including the BuddyPress&bbPress, are square. How to do all avatars round?
    Thanks you.

    #150734
    bdbrown

    Hi Oleg. This example may give you a starting point: Wrapping Text Around A Circular Image With CSS Shapes.

    #150735
    Oleg

    Thanks, but this code is not working for me. I’m not sure how to change it.

    #150755
    Tom
    Lead Developer
    Lead Developer

    I’m using this CSS to make avatars round in bbPress:

    #bbpress-forums div.bbp-forum-author img.avatar, 
    #bbpress-forums div.bbp-topic-author img.avatar, 
    #bbpress-forums div.bbp-reply-author img.avatar {
        border-radius: 50%;
    }

    border-radius: 50% will only work if the image is the same width and height (100×100 for example).

    #150833
    Oleg

    Thank you!
    What CSS is needed to BuddyPress?

    #150860
    Tom
    Lead Developer
    Lead Developer

    Can you link me to a BuddyPress page with avatars?

    #150870
    Oleg
    #150878
    Tom
    Lead Developer
    Lead Developer

    Give this CSS a try:

    .avatar {
        border-radius: 50%;
    }
    #151041
    Oleg

    Yes, cool!

    #152537
    Michael

    @Tom that was the best CSS code around. Thanks for that. Small and simple.

    #152590
    Tom
    Lead Developer
    Lead Developer

    Happy to help! 🙂

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.