Skip to:
Content
Pages
Categories
Search
Top
Bottom

Passing bp_message_thread_avatar() a width and height

  • Avatar of Henry
    Henry
    Member

    @thirstcard

    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)
  • Avatar of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    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.

    Avatar of Henry
    Henry
    Member

    @thirstcard

    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?

    Avatar of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

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

    Avatar of Henry
    Henry
    Member

    @thirstcard

    Thanks I’ll give it a go!

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

You must be logged in to reply to this topic.