Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Support: Creating & Extending

Existing and new plugins/components and themes.

[resolved] Child theme – change default avatar (4 posts)

Started 5 months ago by: czz

  • Profile picture of czz czz said 5 months ago:

    I’m creating a child theme fo bp. I like to use an other image than default mystery man. How can i do this? I think i’m missing something.

    This is what i put in the function.php but it doesn’t work

    function konax_core_set_avatar() {
    define( ‘BP_AVATAR_DEFAULT’, get_stylesheet_directory_uri() . ‘/images/mystery-man.jpg’ );
    define( ‘BP_AVATAR_DEFAULT_THUMB’, get_stylesheet_directory_uri() . ‘/images/mystery-man-50.jpg’ );
    }

    any other idea for the theme is appreciate. here is the link http://quicktesting.tk/members/admin/

  • Profile picture of Emily-G Emily-G said 5 months ago:

    This is what i use in my functions.php

    http://pastebin.com/t6TzFKVt

    It will add the images into the gravatar list under settings/discussions that you can then set as default.

  • Profile picture of modemlooper modemlooper said 5 months ago:

    Don’t wrap define in a function.

  • Profile picture of czz czz said 5 months ago:

    Thanks modemlooper :D that was it