Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • The Avatar of @newslicer is not shown on my site too (https://www.retropixels.at/chips-challenge-atari-lynx-1989/#comment-168). I use an other Theme and no caching plugin. Seems like Avatar Privacy does not like his Gravatar…

    Thread Starter Pixelpoldi

    (@retropixel)

    It works now perfectly! Thanks!

    Thread Starter Pixelpoldi

    (@retropixel)

    Well, thats a good question. Cant answer that, because I′m not the Author of the Theme but it seems pretty senseless ??

    Here is the complete code of the author-box :

    <!-- about the author -->
    <div id="author-block" class="box-shadow-2px clearfix" itemscope="" itemtype="https://schema.org/Person">
    <h2 class="author-title"><?php _e('About the author', 'color-theme-framework'); ?></h2>
    
    <div id="author-avatar">
    	<?php 
    	$user_email = get_the_author_meta( 'user_email' );
        	$hash = md5( strtolower( trim ( $user_email ) ) );
        	echo '<img itemprop="image" style="display:none;" src="https://gravatar.com/avatar/' . $hash .'" alt="" />';
    	?>
    	<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 100 ) ); ?>
    </div><!-- #author-avatar -->
    
    <div id="author-description" class="padding-20">
    	<meta itemprop="additionalName" content="<?php the_author_meta( 'first_name' ); ?> <?php the_author_meta( 'last_name' ); ?>">
    	<meta itemprop="url" content="<?php the_author_meta( 'user_url' ); ?>">
    	<p><?php the_author_meta( 'description' ); ?></p>
    
    	<?php ct_get_author_social(); ?>
    
    	<a style="font-size: 11px;" href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><?php _e('View all articles by ', 'color-theme-framework'); the_author_meta('display_name'); ?></a>
    	</div><!-- #author-description	-->
    </div><!-- #author-info -->
    Thread Starter Pixelpoldi

    (@retropixel)

    you′re absolutely right – I found this in single.php:

    style="display:none;" src="https://www.retropixels.at/wp-content/uploads/2018/04/xxxxxxx.png" alt="" />';?>

    It seems that the plugin WP User Avatar has modified the single.php this way ?!
    So I Uploaded the original PHP File, which replaced theabove code with
    echo '<img itemprop="image" style="display:none;" src="https://gravatar.com/avatar/' . $hash .'" alt="" />';

    BUT: Still no Author-Picture ??

    Thread Starter Pixelpoldi

    (@retropixel)

    No, I dont use a Plugin for this.

    <img src="https://[domain]/wp-content/uploads/2018/04/[hash].png" alt="" />

    This is the image I uploaded for the “WP User Avatar” Plugin. Pretty strange that this line is still there, because I deactivated (but not uninstalled) it.

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