4 Great Ways I Customized my Thesis Theme

  • 271 comments
  • General
  • Read Summary

    Summary

    The Thesis theme for WordPress is by far the best Premium theme on the market. For some, it is hard to understand how the hooks system works. In this post, I give away 4 of the code snippets I used to code this theme that runs on Thesis.

    Close

by Alex

Quite recently, Blogussion was upgraded to the powerful Thesis WordPress Theme. After the release, I waited on getting some feedback on the theme. Most people loved it, some people hated it.

I got a lot of emails after the upgrade with questions on how to make some of the customizations I did, and some comments too. So I decided that because I am now addicted to Thesis and want it any blog I ever make, I now want to write about it. So I figured the first thing I would write about Thesis are the customizations I made on my own theme (which is very edited).

Before you read this…

Before you read this post, there are some things I suggest you read if you have never worked with Thesis before. More specifically, regarding the hooks system Thesis uses.

I’m not going to lie, the way Thesis works coding wise will be confusing at first with the hook system it uses. But once you mess around with it, it’s the easiest thing in the world.

DIYthemes Forum

After you buy Thesis, you are granted special access to a Support forum consisting of thousands of Thesis users. I could not have made my Thesis theme what it was today without reading some of the knowledge on that forum, so be sure to use the forum as your go-to place for any Thesis information.

1. Adding a cool post footer

The thing that got the biggest response about the theme was the post footer. Check out the content immediately after this article if you don’t know what I mean by “post footer”.

I am going to show you how to create the same stuff I have in my post footer, except for the Post Highlights box.

So paste this code into custom_functions.php

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

	<div id="similar">
		<h3>You May Also Be Interested In...</h3>
		<p>Similar Posts Code Here</p>
	</div>

	<div id="rightcol">
		<div id="subscribe">
			<h3>Subscribe Now</h3>
			<p>If you enjoyed this post, you will definitely enjoy our others. Subscribe to the feed to get instantly updated for those awesome posts soon to come.</p>
			<ul>
				<li><a href="FEED_URL_HERE">Subscribe to our RSS Feed</a></li>
				<li><a href="FEED_URL_HERE">Subscribe for Email Updates</a></li>
			</ul>
		</div>

		<div id="custom">
			<p>Put whatever you want here!</p>
		</div>
	</div>
	<?php
	}
}
	add_action('thesis_hook_after_post_box', 'post_footer');

Here is the CSS too, if you want to build off of my style. Paste this in custom.css:

/* AUTHOR BOX */
.custom #comments { clear: both; }
.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; }
.postauthor p.hlight { font-size: 11px; text-transform: uppercase; }
.postauthor p.hlight span { color: #CB3131; font-size: 13px; font-style: italic; font-weight: bold; letter-spacing: 0.8px; }
/* BOXES */
#similar h3, #rightcol h3 { font-size: 1.8em; letter-spacing: normal; padding-top: 15px; }
#similar { float: left; width: 50%; }
#similar p { margin-bottom: 15px; padding: 10px 2.5em 10px 10px; }
#similar a { font-size: 1.4em; border-bottom: 1px solid #CB3131; line-height: 1.5em; }
#similar a:hover { border: 0; }
#similar h3 { padding-left: 10px; }
#similar span.date { color: #888; letter-spacing: 1px; text-transform: uppercase; }
#rightcol { float: right; width: 50%; }
#rightcol p { font-size: 14px; line-height: 1.5em; padding: 10px 2.5em 10px 0;  }
#rightcol h3 { padding: 0; }
#rightcol ul { list-style-position: inside;  list-style-type: square; margin-left: 1em; }
#rightcol ul a { border-bottom: 1px solid #CB3131; font-size: 14px; }
#rightcol ul a:hover { border: 0; }
#rightcol li { margin-bottom: 10px; }
#subscribe { background: #FFFBCC; border: 1px solid #E6DB55; float: right; margin: 15px 15px 0 15px; padding: 19px 10px; -moz-border-radius: 5px; -webkit-border-radius: 5px; }
#custom { background: #E4F2FD; border: 1px solid #C6D9E9; float: right; margin: 15px; padding: 19px 10px; -moz-border-radius: 5px; -webkit-border-radius: 5px; }

2. Custom Pages

If you want to edit the Thesis 404 page or Archives page like I have, check out the codes I used:

Archives Page

The default Archives page that comes with Thesis is great, but I want to do more with mine (still under construction by the way). Here is the code you can use to edit the Archives template from custom_functions.php

function new_archives() { ?>
	<p>New Archives Page</p>
<?php }

remove_action('thesis_hook_archives_template', 'thesis_archives_template');
add_action('thesis_hook_archives_template', 'new_archives');

404 Page

I got the following code from Rae Hoffman (Suggarrae).

function custom_thesis_404_title() {
?>
YOUR 404 PAGE HEADING HERE
<?
}

remove_action(’thesis_hook_404_title’, ’thesis_404_title’);
add_action(’thesis_hook_404_title’, ’custom_thesis_404_title’);

function custom_thesis_404_content() {
?>
<p>WHATEVER YOU WANT YOUR 404 PAGE TO SAY HERE</p>
<?
}

remove_action(’thesis_hook_404_content’, ’thesis_404_content’);
add_action(’thesis_hook_404_content’, ’custom_thesis_404_content’);

3. Add Custom Info to Featured Post

On the front page of the blog, there is one featured post followed by 14 teasers. I was able to add content to the bottom (such as the ShareThis button and Tweet This) of the featured post only, and this is how i did it:

function featuredpost_content() {
	if (is_home())
	{
	?>
		<p>Add whatever here</p>
<?php }
}
	add_action('thesis_hook_after_post', 'featuredpost_content');

This may or not be useful if you don’t use featured posts on your Thesis blog.

4. Add Thumbnails to “Popular Posts”, “Similar Posts”, “Recent Comments”, etc.

Note: You will need to use any plugin from Rob Marsh to be able to do this.

poposts-thumbnailsI used Custom Fields for this. if you don’t know how to use custom fields, read this article at the WordPress Codex.

If you use the teasers Thesis has on your blog and have 66×66 images then most of the work will already be done for you. If not, create a custom field and paste your image URL’s into it.

So if you use Rob Marsh’s “Popular Posts” plugin for example, go to Settings → Popular Posts → Output and paste this code into the very first input box “Output Template”:

<p>
<img src="{custom:thesis_thumb}" width="50" height="50" alt="" />{link}
<div class="clear"></div>
</p>

You may also need to add this to your CSS, unless you already have it. You need a clear in the code, or the output won’t look right.

.clear { clear: both }

And to add that to the sidebar, you could either copy and paste it into your Widgets panel, or if you chose not to use Widgets you can use this code to do it:

function PopPosts() { ?>
	<?php popular_posts(); ?>
<?php }
	add_action('SEE BELOW OPTIONS', 'PopPosts');

Since Thesis has a variety of sidebar hooks, you can choose one of the below to replace with “SEE BELOW OPTIONS” above:

  • thesis_hook_before_sidebar_1
  • thesis_hook_after_sidebar_1
  • thesis_hook_before_sidebar_2
  • thesis_hook_after_sidebar_2

So Thesis really isn’t hard at all to mess around with, you just need to give it a little time for you to fully understand it. Hopefully by seeing the customizations I shared with you will make you realize that. And if you are looking for a great Premium Theme, I am telling you that you cannot go wrong with buying Thesis.

Back to the top

by

To learn more about this author and see all of their posts, click below.

View Full Profile →

Discover the Real Meaning...

of what it means to master the psychology of your blogging practice. Find out one of the most missed aspects to blogging now, totally free!

Jacari Bray December 11, 2010 at 3:46 pm

I was wondering how you got the nav bar below the header.

Thumb up 1 Thumb down 0
Siva December 13, 2010 at 3:55 am

Where I can find “Similar post code here” .. Any help?

Thumb up 3 Thumb down 1
bowler December 21, 2010 at 1:31 am

this is nice and it’s helpful for others

Thumb up 0 Thumb down 0
Rob @ Atlanta Real Estate December 21, 2010 at 2:16 am

Pretty solid, mon frer. You guys are really good designers.

Thumb up 0 Thumb down 0
Web designing in India December 21, 2010 at 8:26 am

Thesis Hook Reference List is very essential step while customizing thesis theme.

Thumb up 1 Thumb down 0
Josh December 30, 2010 at 1:20 pm

Theming for popular post is essential in running a good blog.

Thumb up 0 Thumb down 0
Tony December 30, 2010 at 1:21 pm

I agree with Josh. Everyone looks high and low for the most popular posts. It’s kind of like high school in blog format.

Thumb up 0 Thumb down 0
mbareports.com January 4, 2011 at 2:23 am

nice theme i loved it

Thumb up 0 Thumb down 0
Service Aer Conditionat January 15, 2011 at 11:26 am

It’s pretty hard to modify the thesis theme, I think that should be a major concern for the developer. The hook system is really hard to work with

Thumb up 0 Thumb down 0
Rob McCance January 17, 2011 at 11:43 am

Actually it’s quite easy and well documented on how to modify.

My problem is the artistic end of it. So I can do anything I want, but what do I want and will it look nice and professional or compelling?

That’s the issue, it’s a blank slate. Blank slates only work for the truly artistic with vision.

Thumb up 0 Thumb down 0
Blogging Tips January 26, 2011 at 3:33 am

I agree with you Rob. Thesis is indeed a blank slate. But it opens up lots of creativity that resides inside us. I was and am even now don’t know much about css and coding. But with Thesis I was surprised to see how I can make my blog look exactly like how I want it to be- colors, design, layout anything, literally.

Thesis rocks.

Jane.

Thumb up 0 Thumb down 0
Rob McCance January 26, 2011 at 8:34 am

Jane,

You have done a great job with your site!

I subscribed to your RSS and will check out your content. I’m sure I will learn something.

Thanks!

Thumb up 0 Thumb down 0
Bright Displays January 15, 2011 at 5:32 pm

I really like the images on the popular post plug-in on the sidebar. Any reason you changed it from left to right? I myself prefers to put the images on the left of the titles.

Thumb up 0 Thumb down 0
Krish January 27, 2011 at 6:23 am

Your menu looks awesome! How did you customize that?

Thumb up 0 Thumb down 0
Book Hotels in London February 8, 2011 at 3:48 am

As a complete WP noob, I find this completely overwhelming. However, I also find it very motivating and it opens a whole new world of possibilities. I definitely should come here more often. :D

Thumb up 0 Thumb down 0
skyscraper@Business and Finance Corner February 9, 2011 at 9:57 am

I’m still new in using the thesis theme, and your tutorial really helped me to make modifications in my thesis theme

Thumb up 0 Thumb down 0
Quixotic February 9, 2011 at 10:12 am

Really like the popular posts fix, that really gets that Thesis feature popping nicely :)

Thumb up 1 Thumb down 0
cj uppal February 16, 2011 at 12:32 am

Thanks for the post. Usually do websites in straight HTML/CSS but may consider using wordpress as it saves time because I’m usually busy with other projects so this stuff will be useful to know.

Thumb up 0 Thumb down 0
Nasif March 4, 2011 at 6:42 am

Thanks for the list… I will go into customizing my theme later probably next year…

Thumb up 0 Thumb down 0
Anuj March 14, 2011 at 1:33 pm

Looking forward to it! Thanks in advance.

Thumb up 0 Thumb down 0
Martha, leadership coaching atlanta March 18, 2011 at 8:48 am

Hi, I like your post. I wish everyone would pay such attention to their post as you do. I came across your web-blog on yahoo when looking for a compartment. I will come back again for your web-page.

Thumb up 0 Thumb down 0
yuenmar March 21, 2011 at 11:27 pm

hello
do you have any idea how to add nofollow attributes on the nav menu?
any help would be appreciated
thanks.

Thumb up 1 Thumb down 0
joe March 26, 2011 at 8:33 am

Why everytime everyone said about about customizing Thesis theme always want to say about footer! How about front page, where people care to look. I find nowhere that explain how to expand or extend 3 columns into 4 or 5. There are only footer this footer that everywhere in Google. May be Thesis is meant for customizing footer only.

Thumb up 1 Thumb down 0
Tips for Technology March 28, 2011 at 2:10 am

Hi ..is there any way I can get same type of things on a free theme ..wordpress Swift theme

Thumb up 0 Thumb down 0
Kevin April 3, 2011 at 12:13 pm

Hi Alex,

Can you tell me where I can find the code to fit into the Similar Posts box. I have the plugin installed, but I am just not sure what code is supposed to be placed there.

Thanks

Thumb up 0 Thumb down 0
VnTim April 15, 2011 at 2:44 am

Your menu looks awesome! How did you customize that?
I was wondering how you got the nav bar below the header.
Looking forward to it! Thanks in advance.

Thumb up 1 Thumb down 1

Comments on this entry are closed.

Previous post:

Next post: