Skip to:
Content
Pages
Categories
Search
Top
Bottom

Passing bp_message_thread_avatar() a width and height

  • @thirstcard

    Member

    Unlike bp_displayed_user_avatar(), I don’t seem to be able to pass the bp_message_thread_avatar() function a height and width to display avatars a custom size.

    Do we know if this is expected behaviour?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @rogercoathup

    Participant

    If you have a look at the bp_message_thread_avatar() function in the BuddyPress codebase, you can see which arguments it accepts, and also which functions it calls onto to get an avatar.

    That should help you determine which alternative avatar function to use.

    @thirstcard

    Member

    Thanks Roger. This particular function doesn’t seem to accept such arguments. I assume that means you can’t change the size of the avatar on the inbox and sent message pages?

    @rogercoathup

    Participant

    Yes, but you could modify those pages to use an alternative avatar function

    @thirstcard

    Member

    Thanks I’ll give it a go!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Passing bp_message_thread_avatar() a width and height’ is closed to new replies.
Skip to toolbar