• ProBlogger 31 Days to Build a Better Blog
  • WordPress Security Tips & Tutorials
  • Blogging & SEO Techniques
  • Best Freelance Online Jobs

How to Add an About Author Box in Thesis 1.6

by Sam on March 20, 2010 · 27 comments

in Thesis Tutorials,Tutorials

After posting a general tutorial on How to Add Thesis Image
an About Author Box in the Post Footer in WordPress
yesterday, my visitor traffic soared and quite a few persons were asking me how to add the author box to the Thesis theme. So since I like to please my readers, here’s a short and easy tutorial on how to get it done.

Step 1 – Add your bio to wordpress

Fill out your profile information in the wordpress Users’ Profile section. Ensure to add your first name and your site’s name because the script will be calling and displaying this information on your posts.

Step 2 – Code in the Custom_functions.php file

Access your Thesis Options (Located at the bottom-left in your wordpress admin) and select Custom File Editor, this is where you will add the code to call the bio information. Within the thesis custom file editor, ensure that custom_functions.php is selected in the file selection drop-down menu at the top. If it is not selected then select it from the drop-down menu and click Edit Selected File.

Then add the code below at the end of the file and click save:

function post_footer() {
if (is_single())
{
?>
<div class="postauthor"
>
<?php echo get_avatar( get_the_author_id() , 120 ); ?>
<h4>Article by <a href="<?php the_author_url(); ?>">
<?php the_author_firstname(); ?> <?php the_author_lastname(); ?></a></h4>
<p><?php the_author_firstname(); ?> has written <strong><?php the_author_posts(); ?></strong> awesome articles for us. <br/><br/><?php the_author_description(); ?></p>
</div>
<?php
}
}
add_action('thesis_hook_after_post_box', 'post_footer');

Note: For the code in the bold highlight above, the RSS feed addresses should be changed to your own.

Step 3 – Code in the Custom.css file

Within your custom file editor select Custom.css from the drop-down menu and click edit selected file. Then add the css code below at the end of the file and hit save:

.postauthor { background: #F5F5F5; border-top: 1px solid #e1e1e0; border-bottom: 1px solid #e1e1e0; overflow: hidden; padding: 1.5em; }
.postauthor img { border: 5px solid #e2dede; float: left; margin-right: 1.5em; }
.postauthor h4 { color: #666; font-size: 2em; margin-bottom: 5px; }
.postauthor p { color: #515151; font-size: 13px; margin-bottom: 12px; }

You should end up with something like this: Thesis Author BoxAnd that’s it. Hope you found this useful.

Please let me know if this works for you or if you have any difficulties. Everybody is going crazy over the Thesis theme, can anyone convince me as to why I should switch?

Related posts:

  1. How to Add an About Author Bio Box in the Post Footer in WordPress
  2. How to Highlight Author Comments & Edit Your Reply Button in Thesis
  3. How To Create A Custom Front Page In WordPress
  4. How to redirect web pages using a very simple PHP code
  5. Secure Your WordPress Blog Against Malicious URL Requests

{ 2 trackbacks }

designfloat.com
April 14, 2010 at 2:24 PM
Vote on this article at blogengage.com
April 15, 2010 at 8:38 AM

{ 25 comments… read them below or add one }

1 Dev | Technshare
Twitter:
March 20, 2010 at 9:32 AM

great post mate ….very helpful for thesis users.
Dev | Technshare´s last blog ..12 ways to Increase comments on your Blog My ComLuv Profile

Reply

2 Sam
Twitter:
March 20, 2010 at 10:36 AM

Thanks for reading Dev. Please retweet. Thanks :)

Reply

3 Dev | Technshare
Twitter:
March 21, 2010 at 9:00 AM

Retweeted :)
Dev | Technshare´s last blog ..Weekly Roundup #1 My ComLuv Profile

Reply

4 Jamaipanese March 20, 2010 at 4:27 PM

this should be very useful to thesis users
Jamaipanese´s last blog ..Monster Hunter Tri Will be HUGE My ComLuv Profile

Reply

5 Sam
Twitter:
March 21, 2010 at 8:07 AM

Definitely. I’m thinking about switching to thesis. There are some really cool ways to customize the theme
Sam´s last blog ..10 Simple Steps to Secure & Protect your WordPress Blog My ComLuv Profile

Reply

6 Fazreen April 15, 2010 at 12:18 PM

I notice your blog title goes down. Maybe you should shorten the ‘subscribe link’ at the top of your blog to fix it.
Fazreen´s last blog ..How To Upgrade From Thesis 1.6 To Thesis 1.7 My ComLuv Profile

Reply

7 Sam
Twitter:
April 15, 2010 at 1:37 PM

Hey Fazreen,

Thanks for giving me the heads up. I’ve never had that problem with my display though. What screen resolution are you using or are you using the zoom feature in your web browser? I think these factors may affect that.

Please let me know.
Sam´s last blog ..6 Awesome WordPress Alternatives My ComLuv Profile

Reply

8 Fazreen April 28, 2010 at 5:22 AM

I’m using old version off firefox as I’m using LINUX OS. Don’t worry it looks fine when i view in latest version off firefox on windows OS.

Reply

9 Alison Moore Smith@Easy Blog Setup
Twitter:
April 16, 2010 at 1:43 AM

I’m the sole blogger on a couple of blogs, but own a large, group blog. I’l be updating it to Thesis in the next month or so (have some hacking to fix) and will try this out. Perfect for a group blog. Thanks!
Alison Moore Smith@Easy Blog Setup´s last blog ..31DBBB: Day #9 Join a Forum and Start Participating My ComLuv Profile

Reply

10 Sam
Twitter:
April 17, 2010 at 12:59 PM

Thanks for visiting Alison! :)

The thesis theme provides an excellent framework for customizing and exercising total control of a blog’s design. Nice move. If you need any help, please don’t hesitate to ask :)
Sam´s last blog ..6 Awesome WordPress Alternatives My ComLuv Profile

Reply

11 Chuck Edwards@Weight Loss Blog April 28, 2010 at 3:55 AM

I didn’t want to learn how to add an author box. However, I did need to learn how to had post footer content. Your post was the most helpful. Once I decide on exactly what content I want to add to my post footer, I’ll be golden. Thanks!

This is my first time on your site. It looks great! I’ll be visiting often from now on.
Chuck Edwards@Weight Loss Blog´s last blog ..The Special K Diet and Challenge My ComLuv Profile

Reply

12 Sam
Twitter:
April 29, 2010 at 5:38 PM

Hey Chuck,

I’m really glad you like my site. I took a look at yours and I must say that the information you’re providing there is awesome. Let me know if you need further help with your thesis theme.

Reply

13 Jonathan Gardner June 10, 2010 at 3:01 PM

You forgot to link the CSS to the code. You need to put class=”postauthor” in the opening DIV tag for your code to work. Other than that it works like a charm.

Reply

14 Sam
Twitter:
June 10, 2010 at 4:39 PM

Thanks for the heads up Jonathan! :D

I made the correction.
Sam´s last blog ..How To Develop That “ProBlogger” Frame Of MindMy ComLuv Profile

Reply

15 Onibalusi Bamidele June 28, 2010 at 11:22 AM

Great tutorial Sam!

It was exactly what i need and with it, I have just customized my thesis theme.

Thanks a lot for the great post,
-Onibalusi
Onibalusi Bamidele´s last blog ..A Better TomorrowMy ComLuv Profile

Reply

16 Tia
Twitter:
July 6, 2010 at 3:18 AM

Thanks, Sam. Just finally switched over to Thesis on my own blog and this really helped. :)
Tia´s last blog ..Blogger Questions Answered- How to deal with rude commentsMy ComLuv Profile

Reply

17 sanya July 13, 2010 at 8:12 AM

hi,

pls tell me can we use this bio box only after posts, not after pages??
Please reply soon, i need to implement it asap…

Thanks a lot.

Reply

18 Sam
Twitter:
August 3, 2010 at 12:49 PM

Hello Sanya,

Sorry for taking so long to reply.

You can actually add it to pages. Instead of using if (is_single()) at the start of the code, you would use if (is_page())

The code in the tutorial is only for posts.
Sam´s last blog ..How I Increased My Search Engine Traffic By 1-000 in 4 MonthsMy ComLuv Profile

Reply

19 Arun Basil Lal
Twitter:
July 14, 2010 at 5:39 AM

Works like a charm. Nice work!
Arun Basil Lal´s last blog ..Fix For BuddyPress Activity Stream Not Showing Up on HomePageMy ComLuv Profile

Reply

20 Sam
Twitter:
August 3, 2010 at 12:44 PM

I’m glad it helped Arun :)
Sam´s last blog ..18 Awesome Websites Powered By WordPressMy ComLuv Profile

Reply

21 Lee August 3, 2010 at 11:42 AM

This is exactly what I was looking for. I just have one question for you…for contributing authors, how do I upload their picture to be shown?
Lee´s last blog ..Grapes aren’t just for wineMy ComLuv Profile

Reply

22 Sam
Twitter:
August 3, 2010 at 12:43 PM

Glad it helped Lee.

For contributing authors’ images to be shown, they will need to create a gravatar account at gravatar.com and ensure that they complete their author bio information in the wordpress dashboard with the same e-mail. Once this is done their image will be automatically shown.

Let me know if this helps.
Sam´s last blog ..18 Awesome Websites Powered By WordPressMy ComLuv Profile

Reply

23 sanya August 4, 2010 at 12:32 AM

Hi,

Thanks for the help sam, it works great.

Reply

24 henry August 14, 2010 at 12:44 PM

hi
how do you add an author bio to the top of the side bar?

Reply

25 Jason Ulsrud August 23, 2010 at 11:18 AM

Thanks so much for this tutorial. It was exactly what I was looking for and it works perfect.

Reply

Leave a Comment


Sam's Web guide uses CommentLuv. This adds a link to your last blog post when you leave a comment

CommentLuv Enabled

Previous post:

Next post: