• Resolved Spaznutz

    (@spaznutz)


    Hi there,

    Cool plugin – but I do not get the ‘Custom Default Avatar’ checkbox under the Discussion Settings. ‘Anyone Can Upload’ is there though.

    Any idea why this may happen? I had a plugin which displays a custom default avatar, I thought that this may be causing it, but disabling this didn’t help.

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Plugin Author C?t?lin Dogaru

    (@cdog)

    Hey spaznutz,

    Thanks for using Avatar Manager! Please see the FAQ Can I create a default custom avatar?

    In order to have a custom default avatar listed you need to filter the avatar_defaults hook. Just add the following code to you theme functions.php file:

    function custom_avatar_defaults ( $avatar_defaults ) {
        $avatar_url = get_bloginfo( 'template_directory' ) . '/images/avatar-default.png';
        $avatar_defaults[$avatar_url] = __( 'Custom Default Avatar', 'mytextdomain' );
    
        return $avatar_defaults;
    }
    
    add_filter( 'avatar_defaults', 'custom_avatar_defaults' );

    And make sure to update the image path relative to your theme files structure (/images/avatar-default.png).

    Please let me know if anything else I can do to help.

    Best,
    C?t?lin

Viewing 1 replies (of 1 total)
  • The topic ‘No Custom Avatar Option’ is closed to new replies.