4 Great Ways I Customized my Thesis Theme

4 Great Ways I Customized my Thesis Theme

by Alex · 221 comments

Quite recently, Blo­gus­sion was upgraded to the pow­er­ful The­sis Word­Press Theme. After the release, I waited on get­ting some feed­back on the theme. Most peo­ple loved it, some peo­ple hated it.

I got a lot of emails after the upgrade with ques­tions on how to make some of the cus­tomiza­tions I did, and some com­ments too. So I decided that because I am now addicted to The­sis and want it any blog I ever make, I now want to write about it. So I fig­ured the first thing I would write about The­sis are the cus­tomiza­tions I made on my own theme (which is very edited).

Before you read this…

Before you read this post, there are some things I sug­gest you read if you have never worked with The­sis before. More specif­i­cally, regard­ing the hooks sys­tem The­sis uses.

I’m not going to lie, the way The­sis works cod­ing wise will be con­fus­ing at first with the hook sys­tem it uses. But once you mess around with it, it’s the eas­i­est thing in the world.

DIYthemes Forum

After you buy The­sis, you are granted spe­cial access to a Sup­port forum con­sist­ing of thou­sands of The­sis users. I could not have made my The­sis theme what it was today with­out read­ing some of the knowl­edge on that forum, so be sure to use the forum as your go-to place for any The­sis information.

1. Adding a cool post footer

The thing that got the biggest response about the theme was the post footer. Check out the con­tent imme­di­ately after this arti­cle if you don’t know what I mean by “post footer”.

I am going to show you how to cre­ate the same stuff I have in my post footer, except for the Post High­lights 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. Cus­tom Pages

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

Archives Page

The default Archives page that comes with The­sis is great, but I want to do more with mine (still under con­struc­tion by the way). Here is the code you can use to edit the Archives tem­plate 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 fol­low­ing code from Rae Hoff­man (Sug­gar­rae).

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 Cus­tom Info to Fea­tured Post

On the front page of the blog, there is one fea­tured post fol­lowed by 14 teasers. I was able to add con­tent to the bot­tom (such as the ShareThis but­ton and Tweet This) of the fea­tured 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 use­ful if you don’t use fea­tured posts on your The­sis blog.

4. Add Thumb­nails to “Pop­u­lar Posts”, “Sim­i­lar Posts”, “Recent Com­ments”, etc.

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

poposts-thumbnailsI used Cus­tom Fields for this. if you don’t know how to use cus­tom fields, read this arti­cle at the Word­Press Codex.

If you use the teasers The­sis has on your blog and have 66×66 images then most of the work will already be done for you. If not, cre­ate a cus­tom field and paste your image URL’s into it.

So if you use Rob Marsh’s “Pop­u­lar Posts” plu­gin for exam­ple, go to Set­tings → Pop­u­lar Posts → Out­put and paste this code into the very first input box “Out­put 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 out­put won’t look right.

.clear { clear: both }

And to add that to the side­bar, you could either copy and paste it into your Wid­gets panel, or if you chose not to use Wid­gets you can use this code to do it:

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

Since The­sis has a vari­ety of side­bar 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 The­sis really isn’t hard at all to mess around with, you just need to give it a lit­tle time for you to fully under­stand it. Hope­fully by see­ing the cus­tomiza­tions I shared with you will make you real­ize that. And if you are look­ing for a great Pre­mium Theme, I am telling you that you can­not go wrong with buy­ing The­sis.

Go to top

Article by Alex

I'm the 17 year old blogger & designer behind Blogussion. I live in New Jersey (but root for the New England Patriots), and am a Junior in High School. You can check out my rarely updated personal(ish) blog, Asnio, or connect with me on Twitter.

  • 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.

From Planning to Earning

A free course that explains all you need to know about maintaining and building a powerful, money making blog.

Information is delivered through a beautiful web guide & a 10 day email course (+ a weekly newsletter). Sign up, or learn more!

Metahuman April 16, 2010 at 12:40 am

@toronto massage therapy: You can use compression if your webserver allows without any plugins.

@Alex: I am going to steal your custom info hack. :P

Reply

Anh2 April 24, 2010 at 5:11 am

Great post. Thank you so much.
How about the theme of this blog? Where can I buy it?
Anh2´s last blog ..CO.CC – Free Domains

Reply

Kaushik April 24, 2010 at 4:52 pm

i have just now installed thesis theme; i am right in the middle of an ocean now :) seems i shall have to forget blogging for a few days and learn thesis customization first.
Kaushik´s last blog ..????? ???? ???????????? ?????? ???????

Reply

Ralph April 29, 2010 at 7:58 am

I am using the similarity plugin by david miller for displaying the similar post and it does a good job but the formatting is off (ralphplaskett.com). Could you help me move the links to the right a little so that they will appear neatly in the white space?

Thanks!

Reply

Newbie Marketer April 30, 2010 at 12:15 am

I am in the process of a revamp on my thesis theme since the upgrade to 1.7 these tips will really go a long way. Thanks so much for the great post I will be sure to share it.
Vincent Cameron

Reply

Ralph April 30, 2010 at 6:22 am

Newbie Marketer,

http://www.blogussion.com/talk is where all the tips are. Alex answered my question in there.

Ralph

Reply

Newbie Marketer April 30, 2010 at 6:36 pm

thanks I will be sure to stop over and have a look.

Reply

aaslin May 3, 2010 at 9:37 am

is there any ways to learn thesis customization like ebook or other

Reply

PisangPanas May 4, 2010 at 1:19 am

I installed popular post plugin and apply the code you given. I also apply the clear id in css file but the outcome is different,not like yours. Why?
PisangPanas´s last blog ..Mukjizat Di Sebalik Bismillah

Reply

aaslin May 11, 2010 at 4:35 am

Hi alex,im waiting for a blogger-to-wordpress migration tutorial from you.There are lot of bloggers posting fake one and do you know about migration?

Reply

eric May 16, 2010 at 4:32 pm

How do I make the Post Footer show up for the list of posts page and not just the single post page? Thanks.

Reply

eric May 16, 2010 at 5:09 pm

Also if I add tags in the Post Footer it will double up the tags in the Post… the default ones from Thesis show as well as the Post Footer… how do I remove the default tags area and have it only show in the Post Footer?

Reply

Brian K Meagher May 16, 2010 at 10:01 pm

Alex, Please turn off comments for this post… never mind, I will just unsub from this post.
@Eric @aaslin @pisangpanas et al – buy a REAL copy of Thesis and go to the forums for your questions.

Reply

eric May 16, 2010 at 10:20 pm

ouch.

I do have a REAL copy of Thesis. Seems fitting to ask a question regarding this article within its comments, no?

Reply

Jonathan July 24, 2010 at 12:34 am

@brian
Since you posted in May, the owner of the Thesis theme has finally agreed that it should follow GPL rules:
http://mashable.com/2010/07/22/thesis-relents/
So this is (and should be) as good a forum as any to discuss the theme.
And if Alex can make a few bucks promoting his version and make it easier for others to use it without learning all the hacks, then good for him.
I have an awesome 16 year old son – but wish he knew WP and Thesis like you Alex so he could help me out!

Reply

SEO UK June 8, 2010 at 9:21 am

These great sites give me the inspiration to do better with my Thesis-themed sites. I want to get away from the generic Thesis look but it’s the graphics and overall design that I have problems with.

Reply

hurly June 9, 2010 at 12:15 am

well done,good job.



Reply

melven June 12, 2010 at 1:56 pm

this is a cool tips! newbies like really appreciate this. will try to customize my blog now

Reply

lirik June 18, 2010 at 12:52 pm

great tips, thanks for sharing.
lirik´s last blog ..Lirik Bila Terasa Rindu – Dafi

Reply

Ronald Redito June 28, 2010 at 5:52 am

I am currently trying to learn thesis customization because I hate seeing blogs with the same template as mine.

I hope I could make a great customization before I purchase the developer’s version.
Ronald Redito´s last blog ..Kris Aquino Proclaims Marriage to James Yap Is Over

Reply

chi3nming July 13, 2010 at 3:08 am

I am also using thesis theme. How to make your teaser posts have images instead of the conventional texts?
chi3nming´s last blog ..Congratulations To Spain As 2010 Fifa World Cup Champion

Reply

good shop July 13, 2010 at 12:26 pm

Nice tutorial. Thesis themes is a superb theme but I can’t modify it on my owns.
My blog looks better when I add thumbnail on it.automotive news

Reply

Silent July 18, 2010 at 5:42 am

Thanks, Alex. That helped a lot.

Reply

Richard July 22, 2010 at 3:25 pm

Alex,

You have truly mastered the Thesis theme. This is by far one of the most well-crafted Thesis themes that I have seen.

Thanks for the detailed instructions,
Richard
Richard´s last blog ..How To Connect Computer To TV

Reply

Ortis July 26, 2010 at 9:38 am

If you’re a blog­ger, it isn’t hard to fig­ure out what you vis­i­tors came to your web­site for: con­tent. And as a web­mas­ter, it’s your job to give your vis­i­tors what they’re look­ing for. There are many ways to do this, espe­cially under the world’s best and most expand­able blog­ging plat­form, WordPress.
Ortis´s last blog ..Физические лица-предприниматели теперь обязаны осуществлять доплату взносов в Пенсионный фонд Украины

Reply

Justyn July 26, 2010 at 10:42 am

Really great post! #1 is definitely a customization I just added to my blog (thanks). But how do you add those custom images like you do all over your site? or is that more advanced?

Reply

SenseiMattKlein July 29, 2010 at 7:20 am

Some great tutorial there on hooks. Thesis really harnesses the power of hooks. Have not tried custom fields yet, so thanks for the intro.

Reply

ricky July 30, 2010 at 5:46 am

i tried to edit the custom_function.php i hit ctrl+A in the custom_function.php then i delete the existing code, so i copy the code from yours and i paste it there, but then i can’t open my web. what happen?? even to the admin page, it doesn’t open at all. all i see is the blank page of my web. i need your help to fix my web soon.
regards,

ricky

Reply

Linda August 1, 2010 at 5:46 am

Thank you Alex!

Does anyone know what is up with DIYThemes.com? Their main pages listed on google go to error pages, and logging into the DIYThemes/Thesis forum failed (we own a developer version of Thesis – but are newbies).

I don’t see here a mention of “child” themes. I am not proficient at this – but I do see the need to do this kind of set-up so that when Thesis or Wordpress upgrades I don’t lose my tweaks – or is that not an issue with Thesis?

I was attracted to someone else’s website layout and found they used http://www.studiopress.com/themes/allure but their support is very expensive. I wonder if Thesis lends itself to a set-up like that without lots of work.
Linda´s last blog ..Facebook Should Allow Island Name in Hawaii Profile Locations

Reply

David Hobson August 4, 2010 at 4:14 am

YOU SUCK! Man, when I was in Jr. high/ high school and was all into computers, all I had to work with as HTML and C++. Made a bunch of cool little games, and HTML sites, but that only took me so far. Right when I change my major and leave the computing world, THEN 16 year-old kids are making a living off of hacking Wordpress. Hence, YOU SUCK!

*sorry, this is one of those moments where life isn’t living up to what it’s supposed to be, so I’m taking it out on you. This is an amazing site, and just glancing at it is blowing me away! My HTML knowledge made getting to know wordpress a breaze, but I didn’t get far enough into Php to really get a grasp and understand all your coding thoughts. You’re brilliant, and I hope you really take this far. I’m sure you’ve heard the props before, but let me just affirm all of them.

I’d love to ask you a million questions about how you built the team, where your revenue stream is – it’s actually kind of nice not to see millions of ads everywhere! and a whole bunch more. But I wouldn’t be surprised if Alkismet or language screener has already deleted this comment. None-the-less, good luck!

Reply

Paul August 11, 2010 at 3:49 pm

Very nice site.
Do you know of a “carousel” widget for Thesis?

Thanks Paul

Reply

Internet Marketing Companies August 12, 2010 at 2:04 am

Thanks for providing custom function PHP code as a coder this is useful for me…

Reply

AdamSafire August 22, 2010 at 2:26 pm

Thank you so much for sharing.

Reply

Leave a Comment

CommentLuv Enabled

31 trackbacks