• Resolved Fuyutski

    (@fuyutski)


    It seems I’ve been having some issues with the avatars being displayed by Simple Local Avatars in the WP Biographia box at the bottom of posts.

    It looks like this: http://s11.postimg.org/5v0n0oaur/biographia.png

    Gravatars work fine, so I would assume that it’s how Simple Local Avatars is being displayed. When I go to inspect the elements on the page, I can see the following:

    <div class="wp-biographia-pic" style="height:100px; width:100px;"><img alt="Al Garlando" src="http://website.com/uploads/2014/03/Al-Garlando_avatar_1394449973.jpg" class="avatar avatar-100 photo" height="100" width="100"></div>

    Gravatars show up as:

    <div class="wp-biographia-pic" style="height:100px; width:100px;"><img alt="" src="http://1.gravatar.com/avatar/795e85ac94b7bae5832135501ce8dcce?s=100&d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D100&r=G" class="wp-biographia-avatar avatar-100 photo" height="100" width="100"></div>

    The site is a self-hosted multisite using the Plexus paid theme.

    https://wordpress.org/plugins/wp-biographia/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Fuyutski

    (@fuyutski)

    Further to this.

    It seems that it’s just not picking up the avatar by the Simple Local Avatars plugin (class=’avatar ). When I edit that line of code by inspecting it in a browser to change to class=”wp-biographia-avatar”, it works fine with the avatar centered back in the Div.

    The WP Biographia Widget (wp-biographia-widget.php) is handling this fine and changes “class=’avatar ” to “class=”wp-biographia-avatar wp-biographia-avatar-wrap “.

    I wonder if it has to do with the below script not working in the main php file of WP-Biographia?

    function fixup_avatar_css ($avatar) {
    			$pos = strpos ($avatar, 'wp-biographia-avatar');
    			if ($pos === false) {
    				$pos = strpos ($avatar, "class='avatar ");
    				if ($pos !== false) {
    					$avatar = str_replace ("class='avatar ", "class='wp-biographia-avatar ", $avatar, $count);
    				}
    			}
    
    			return $avatar;
    		}

    Has anyone else had this issue?

    Thread Starter Fuyutski

    (@fuyutski)

    After a thorough investigation, I’m managed to find the culprit — a twitter plugin. Now disabled.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Author Image Issues’ is closed to new replies.