How to Add Author Box in Thesis

All of us know that Author Box is now becoming a trend in most of the Blogs, especially in those blogs who have rate of Guest Posts or it’s necessarily for a multi-author blog.

Today I am raising my voice for you regarding How to add the Author Box in Thesis in just 2 Steps

Login to your Dashboard and go ahead in Thesis Custom Editor

Add this code in custom_functions.php

function thesis_author_box() {
	if (is_single()) {
		?>

This post was written by...

<!--?php echo get_avatar( get_the_author_id() , 96 ); ?> – who has written posts on . Contact the author

To change the avatar image size replace 96 in line number 5 with your required size

If you want to change the line who has written this post then edit the code in 4 with your line.

You can also change font size through this

Place this code in custom.css, and modify as per your  needs

.custom .author_info {
	border:1px dotted #666;
	padding:1.0em;
}
.custom .author_info a {
	color:#cc0000;
	border-bottom:1px dotted #fff;
	text-decoration:none;
}
.custom .author_info a:hover {
	border-bottom:1px dotted #cc0000;
}
.custom .author_info .author_photo img {
	border:1px dotted #666;
	padding:0.2em;
	float:left;
	margin:1.0em 1.0em 1.0em 0em;
}
.custom .author_info p {
	margin-top:0.8em;
	margin-bottom:0.4em;
}
.custom .author_info p.author_email {
	text-indent:1.8em;
	background: url('images/my-email-icon.gif') 0px 4px no-repeat;
}

We are done, Tada….Wasn’t it too easy

 

 

 

Comments are closed.