Monday, September 27, 2010

TutZone- Tutorials, Design news and Inspiration

TutZone- Tutorials, Design news and Inspiration

Link to TutZone

How To Add Author Info On Their Blog Posts

Posted: 27 Sep 2010 07:39 AM PDT


The Best way to call guest authors on your blog is by displaying author bio on their posts so that it can help them to spread the word around about themselves. For multi-author blog, I would say, this is a must thing to implement. Putting author’s description at the end of the post helps the readers to know about the writer of that article without having to visit about page.

Procedure:

Note: Do take backup of your theme before you try this.

01. Open your stylesheet and add this code to it:

.postauthor {
color: #222222;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: normal;
background: #EAEAEA;
border-top: 2px solid #000000;
border-bottom: 1px solid #000000;
width: 640px;
padding: 3px;
margin-bottom:5px;
}

02. Now open your index.php file and find below code (or similar):

<?php the_content('Read the rest of this entry »'); ?>

Just before the above line, place below code of lines:

<div class="postauthor">
<?php the_author_description(); ? >
</div>

This concludes this simple and useful tutorial. Hope you like it.

Source

No comments:

Post a Comment