Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #538166

    Hi all,

    Anybody know a way to show gravatar instead of the format icon on formatted posts?
    Seems like this should be normal as in the settings it says, multi user shows gravatar of author.
    I like this allot! However, all my posts are formats, gallery, video etc and all it shows then is the icon.

    Kind regards,
    Thomas

    #538752

    Hi Thomas,

    I’m not sure I understand what you mean, could you try to explain a bit further or post screenshots of what you would like to change? Please link to your site as well.

    Best regards,
    Rikard

    #538882

    ok so here is the example:

    http://www.bestebruidsfotograaf.nl/blog/

    On this blog all posts are of the format GALLERY
    You see the orange circle with the gallery icon on it
    My client would like to have his GRAVATAR here instead of that gallery icon
    This does show as soon as he sets the format to default, but he dont want default :)

    This goes for the archive pages and the single pages.
    I am also noticing that this icon links to the format archive, kinda strange..
    Best case this would be the single article or author archive.

    You understand?

    Kind regards,
    Thomas Borkent

    #539097

    anybody?

    #540050

    Hi,

    Open /includes/loop-index.php and look for:

                    if($post_format == 'standard')
                    {
                    	$author_name = apply_filters('avf_author_name', get_the_author_meta('display_name', $post->post_author), $post->post_author);
    					$author_email = apply_filters('avf_author_email', get_the_author_meta('email', $post->post_author), $post->post_author);
                    	
    					$gravatar_alt = esc_html($author_name);
    					$gravatar = get_avatar($author_email, '81', "blank", $gravatar_alt);
    					$link = get_author_posts_url($post->post_author);
                    }
    

    Replace it by this:

                    	$author_name = apply_filters('avf_author_name', get_the_author_meta('display_name', $post->post_author), $post->post_author);
    					$author_email = apply_filters('avf_author_email', get_the_author_meta('email', $post->post_author), $post->post_author);
                    	
    					$gravatar_alt = esc_html($author_name);
    					$gravatar = get_avatar($author_email, '81', "blank", $gravatar_alt);
    					$link = get_author_posts_url($post->post_author);
    

    Regards,
    Josue

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.