Skip to:
Content
Pages
Categories
Search
Top
Bottom

Always use full size Avatar

  • Avatar of lnghxn
    lnghxn
    Participant

    @lnghxn

    Come across a rather common issue. How to use full size avatar by coding: get_avatar

    1. Open buddypress/bp-core/bp-core-avatars.php,

    2. Find:
    // Set a few default variables
    $def_object = ‘user’;
    $def_type = ‘thumb’;
    $def_class = ‘avatar’;

    3. Simply change ‘thumb’ to ‘full’

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of Hugo
    Hugo
    Moderator

    @hnla

    Please do not advise the editing of core files this is poor practise and never recommended.

    You describe the default args there, the correct means of changing those is when using bp_core_fetch_avatar() to pass it an array of values.

    In templates adjust the various avatar calls using similar principle

    Avatar of lnghxn
    lnghxn
    Participant

    @lnghxn

    Thanks for noticing. Apologize.

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

You must be logged in to reply to this topic.