Author Spotlight (Widget)
How to center user photo in the sidebar (1 post)

  1. mabahl
    Posted 5 years ago #

    Thanks for a great plugin.

    I'm having difficulties getting the user photo (yes, using the recommended additional plugin) to align in the middle of the sidebar.

    I have put the image on top and removed the Gravatar option, as you can see. This code below will align the image to the right. How do I get it to align in the middle? I've tried everything but just can't figure it out.

    //Display User photo OR the Gravatar
    			echo userphoto_the_author_photo();
    			//Display author name
    			echo '<center><strong id="author_name">'.get_the_author_firstname().' '.get_the_author_lastname().'</center></strong>';

    Any help greatly appreciated!


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic