6 ways I customized my WordPress blog theme and how

WordPress Thesis Theme tips

After my article yesterday, I got a couple of questions about the different customization I did on my Thesis. In this article I will include the 6 blog design additions I did on top of the default options of the WordPress Thesis theme.

If you want more WordPress Thesis info, see my video review of latest Thesis version and see even more Thesis design tips.

I forgot to mention earlier but when you buy Thesis WordPress theme you get access to the member’s forum. There you have different users posting customization they made on their blogs, that is where I get most of my design ideas from and that is where the credit for the following customization goes.

Two files you need when customizing Thesis blog theme are located in the “custom” folder: custom.css and custom_functions.php. Nothing else is needed. Simply copy/paste my codes into the file, wherever in the file you want, and save.

Place menu underneath header

Thesis comes with the menu above header look as default. I have changed that to have my menu placed underneath the blog header. Simply put this code into your custom_functions.php file:

remove_action('thesis_hook_before_header', 'thesis_nav_menu'); add_action('thesis_hook_after_header', 'thesis_nav_menu');

Put a clickable image in your header

As I explained before your blog header is the most prominent feature on your blog and it is very important to have unique image to brand your blog with. That is why I have decided to have a blog header image instead of the default blog title option.

You need to upload your header image to /Thesis/Custom/Images folder on your server. Then place this code in your custom.css file (remember to insert your file name and the file height / width):

.custom #header #logo a { display: block; height: 180px; width: 800px; background: url('images/IMAGE-FILE-NAME') no-repeat; outline: none; }
.custom #header #logo, .custom #header #tagline { text-indent: -9999px; }
.custom #header #tagline { height: 0; }
.custom #header {border-bottom:none; padding:0}
.custom #header { padding: 0; }

Place your avatar beside each post

Having your avatar show next to each post you write is a good way of branding yourself. You can for example use the same avatar as you use as your Gravatar or same  avatar you use as your Twitter profile picture. This way you get the total and consistent branding. Insert this code into your custom_functions.php file (remember to insert the URL of your avatar – image size 50×50 works best):

function author_avatar() {
if (is_single()) {
echo '<img src="IMAGE-URL-HERE" alt="" class="title-avatar" />';
}
}
add_action('thesis_hook_before_headline', 'author_avatar');  

And this code you have to insert in your custom.css file:

.custom .title-avatar {float:left; width:5em; margin-right:1em;}

Customize Twitter field in your comments

As I spend time on Twitter and use it for promotion of my blog, I included the Twitter username field in my comments and customized it for a clean and simple look on Thesis. What you need to do is install WP TwiTip ID plugin, activate it and put this into your custom_functions.php file:

function custom_Twitter_ID() {
if(function_exists(wp_twitip_id_show)) {
$atf_id= wp_twitip_id_show("return");
if($atf_id){
echo '<p>Twitter: <a rel="nofollow" href="http://twitter.com/',$atf_id,'">@',$atf_id,'</a></p>';
}
}
}
add_action('thesis_hook_after_comment_meta', 'custom_Twitter_ID');

Have a prominent sponsor spot below content

I used to have Google Adsense block between my content and comments, but because of inefficiency I decided to do something different. Now I have a very prominent and eye-catching block there and I plan to make announcements or put my recommendation messages there.

This has to be done in two steps, first step in custom_functions.php and second step in custom.css. Insert this into custom_functions.php (remember to customize your own message):

function thesis_promo() {
if (is_single()) {
echo '
<div class="promobox2">
<h3 align="center">HEADLINE HERE</h3>
<p>YOUR MESSAGE HERE</p>
</div>
<br />
';
}
}
add_action('thesis_hook_after_post', 'thesis_promo');

And this code you have to insert into your custom.css file (you can customize it by including different colors, borders etc):

.custom div.promobox2 { border-top: 6px solid #2361A1; border-bottom: 6px solid #2361A1; background-color: #CCE1F5; color: black; padding:1em; margin-bottom: 0.5em;}
.custom div.promobox2 H3{ margin-top:0em;}
.custom div.promobox2 a:hover img {border:3px solid #bebebe;}
.custom div.promobox2 a img {border:3px solid #CCE1F5;}
.custom div.promobox2 img {padding: 0px; }

Prominent popular posts in the sidebar

I have done some customization to get the popular posts to be more prominent and eye-catching in the sidebar. What you need to do is you have to install Popular Posts plugin and activate it. In Appearance - Widgets put the “Popular Posts” widget into your sidebar. In “Format of the links” field place this:

<div class="callout"><a href='%post_permalink%' title='%post_title_attribute%'>%post_title%</a></div>

In your custom.css file place this code (you can customize it with different color and border):

.custom li.widget .callout { padding: 0.846em; line-height: 1.385em; background: #e3f0f2; border: 0.077em solid #addde6; }

I hope this gives you some ideas on how easy it is to customize Thesis theme and helps you customize it and make it your own. Did you do any Thesis customization yourself? Why? How? Feel free to share your experience in the comments.

If you want more WordPress Thesis info, see my video review of latest Thesis version and see even more Thesis design tips.

Join thousands of bloggers and get all my blogging tips for FREE! Subscribe to HowToMakeMyBlog via RSS or via e-mail.

If you liked this article, you may also like:

  • How to create a sales letter landing page with WordPress Thesis Theme
  • 8 Thesis theme design tips to make your blog better
  • 6 simple but cool Thesis theme WordPress design tips
  • How to get magazine style WordPress blog with Thesis Theme teasers
  • Thesis Theme 1.6 Video Review – See what Thesis can do now
  • Why I run my blog on Thesis Wordpress Theme

    WordPress Thesis Theme

    Thesis theme gives my blog a professional, clean, easy-to-read layout and SEO friendly design. Thesis makes it simple to make your own blog unique. See more details and get your own Thesis today.

    Post written by Marko Saric on January 30, 2009 in Popular Articles,Thesis Theme

    { 110 comments }

    Roger January 30, 2009

    Thanks much for posting the Thesis tips! I just got the Thesis theme last week and love it! But am still working on customizing. As I know very little about .CSS (okay…nothing actually), it is a bit challenging. I appreciate the tips…

    Tumblemoose January 30, 2009

    One of the things I like about coming here is that you are always willing to share what you have learned or know. I’m not a Thesis user, but I may be one day. Even so, the article is informative and it’s interesting to see the process that goes with the design changes.

    Good job Marko,

    George

    Ken Ronshausen January 30, 2009

    Thank you for the ebook and such a great resource on Wordpress, Twitter, etc.
    A Question 4 you. Can thesis be tweaked to fill a 1024×768 screen?
    KR

    Marko Saric January 30, 2009

    Thanks guys!

    @Ken Ronshausen – Yes. You have options for columns and widths. You can make your blog single column, or with one sidebar like mine or with 2 sidebars. For each of them then you have several options for width. Mine is actually one of the smallest options you can choose.

    Rowell Dionicio January 30, 2009

    Thanks for displaying some of your custom Thesis hacks. There are some that I couldn’t find out that you were able to show for me. Much appreciated!

    Chris Mitchell January 30, 2009

    Hi Marko

    thanks again for the Popular Posts code – I got it working on my site and it looks great! Divehappy.com if you want to take a look.

    Cheers
    Chris

    Marko Saric January 31, 2009

    Thanks to all!

    @Chris Mitchell – Just checked it, looks great!

    Mark Mac January 30, 2009

    Marko – thanks for this great post. Shows excellent reponsiveness to your readers.

    mizdi January 31, 2009

    first time i saw ur site i really sed: wow.. nice layout, i know its thesis (read d footnote) hmmm great articles..and i subscribed to your feed.
    anyways.. I have a question, I really like to use thesis and change the theme of my existing blogsite site, would the transistion be smooth?
    i have changed theme at WP like 4 times, i always look for something “better” for a theme..then my blog grew as i added posts, widgets and plugins and the last time i tried to change theme i got an error message. Im afraid i may not be able to ‘actually’ do a theme change but im really interested with thesis. Can u give me some tips?

    Marko Saric January 31, 2009

    @mizdi – It is a simple process. You need to download Thesis theme, then upload it to your server to /wp-content/themes/ folder. Then go into your WordPress dashboard, and in Appearance – Themes find Thesis and activate it. Should be as easy as that. Your blog will be Thesis then. And then you can slowly work on different customization options.

    Gerald Weber January 31, 2009

    Marko,

    These are great customization tips. you actually have me thinking about using thesis for my next project.

    PS: I installed the tweet this plugin as you suggested in one of your previous articles and my last blog post went virally insane on twitter. Thanks for the tip.

    Marko Saric January 31, 2009

    @Gerald Weber – Good work, congratulations!

    mizdi February 1, 2009

    i know the normal process coz i’ve changed themes 4 times.. on the 5th time i cant change anymore getting an error message so i got stuck on this 4th theme.. i sure hope i wont get that error message when i do it with Thesis.. thanks
    P.s.
    Are u one of those who answers questions on the Thesis Forum? I’m thinking i’ll address my future queries there.

    Marko Saric February 1, 2009

    @mizdi – On Thesis forum you will find people that are much more qualified to answer your customization questions. There are several guys who are part of the Thesis team and they all scan the forum and answer questions.

    john February 1, 2009

    It is good that you use if(function_exists(wp_twitip_id_show)) but it would be better to put it in front of the add_action instead of within the function it calls. No reason to add the action if the function doesn’t exist.

    I’m loving Thesis! Hope you did indeed get credit for my sale.

    Cheers

    Marko Saric February 2, 2009

    @john – Thanks for the comment, I will take a look at that… Your blog looks good, glad you like Thesis!

    @p@r@noid – I am not sure what you mean by ad placements but you can display ads anywhere you want. You can for example have them in the sidebar, in the content like the Thesis box I have and much more. Basically just like any other WordPress blog.

    p@r@noid February 2, 2009

    Hey Marko,
    I’m planning to get thesis but I’m quite unsure about the ad placements.
    Can you suggest something?

    http://twitter.com/shoutmeloud

    Jonathan Muller February 4, 2009

    Good advice, I’ve been looking at the Thesis theme, so I’ll keep these things in mind if I end up getting it. I’m not a programmer at all, so seeing how you did it is really helpful for me. Thanks for sharing.

    Clive February 4, 2009

    I don’t use the Thesis theme, but will consider it for a future project. But thank you anyway for some very useful ideas, some of which can be applied to themes other than Thesis.

    Regards,

    Clive

    Dave February 5, 2009

    Good post… I want to add a custom header to my post and saw your related item… where exactly do I paste in that code? Now, I’m not uses Thesis but I’m thinking the principle should be the same… I’m using wp.them.es blogger

    TIA

    Marko Saric February 5, 2009

    @Dave – Thesis is different so you cannot just copy/paste this code into your own WP theme. Usually to change the header in other WP themes you need to edit your header.php file. See detailed information here: http://codex.wordpress.org/Designing_Headers

    Barney February 6, 2009

    Thanks for this very helpful advice, Marko. One thing I’ve been trying to figure out is how to get rid of the lines that visually divide one column from another in Thesis. I notice you’ve done this and I’m sure there’s a simple solution, but it escapes me at the moment. I’d be grateful for a pointer.

    Marko Saric February 6, 2009

    @Barney – You need to put this line anywhere in your custom.css file:

    .custom #content_box { background: none; }

    Barney February 6, 2009

    Thanks, Marko.

    Jeff Rose February 7, 2009

    Marko-

    Found your site off Gather Little By Little BlogRoll. Glad I did. I just got Thesis in December and absolutely love it. I’m very “code challenged” and Thesis has been very user friendly.

    I was trying to implement your gravatar coding in my blog, but for some reason I can only get it to show on top of my post title or below it. Below it is where I left it so you can see (it pushes the bylines down too). Any suggestions to get it to the left of the title like yours?

    Thanks again and look forward to coming back again. You are officially in my reader!

    Marko Saric February 7, 2009

    @Jeff Rose – Thanks for the comment. I just realized I forgot to include the custom.css part of that code. This code you have to insert in your custom.css file:

    .custom .title-avatar {float:left; width:5em; margin-right:1em;}

    Jeff Rose February 7, 2009

    @ Marko

    Thanks! That worked. Looking forward to more helpful posts with Thesis.

    Romeovn February 14, 2009

    I’m using Wordpress 2.7.1, Thesis 1.4.2. Please help me
    - In Appearance – Widgets put the “Popular Posts” widget into your sidebar. In “Format of the links” field place this ….

    I can’t see the “Format of the links”, what can I do now ?

    Marko Saric February 14, 2009

    @Romeovn – Did you install the plugin I have or some other popular post plugin? And when you drop Popular Posts widget in the sidebar, you need to click on “edit” to get the menu where “Format of the links” is.

    Romeovn February 15, 2009

    I tried but It only show me a screen like this pix
    http://windows-xp.ezas123.net/1.png

    Romeovn February 15, 2009

    Thank you very much, It work now. The problem is I used an old version.

    Thanks

    Troy Corley February 19, 2009

    What a nice blog that gives easy-to-understand instructions on how to customize a blog. In reading just one blog post I’ve already solved one problem and learned several tips! Thank you!

    ziben February 21, 2009

    Hi Marko!

    Your site is great! I have learnt a lot!

    However I get one problem with avatar code. When I am pasting your code to custom_functions.php my site is off. What I see instead is this

    Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /home/ziben8/domains/netopiryna.pl/public_html/wp-content/themes/thesis/custom/custom_functions.php on line 29

    Any clue?

    Marko Saric February 22, 2009

    @ziben – Maybe it didn’t convert well when you pasted it into your document. This is how it should be exactly:

    function author_avatar() {
    echo '';
    }
    add_action('thesis_hook_before_headline', 'author_avatar');

    Gary February 22, 2009

    Tried the header image…but no pic displays; just a blank ‘linked’ space..any ideas?

    Thanks.

    Marko Saric February 22, 2009

    @Gary – Most probably you didn’t put the picture in the correct folder. In my example it is in the Thesis folder in “/Custom/Images/”.

    Gary February 22, 2009

    Got it fixed…I needed the actual ‘full’ url (with each & every subdirectory) of the image.

    Thanks!

    Jeff Rose February 22, 2009

    Marko-

    Not sure why this happened to me, but when I copy and pasted the code you provided in your post straight into my customs.php folder, every ‘ and ” character was replaced with a “#84617;” (not sure the exact numbers, but something like that). I had to go through the code then and replace accordingly. For some people having problems, this might be the issue.

    Gary February 22, 2009

    I had the same character-replacement issue when I copy/pasted straight into my Cpanel editor, so I now copy/paste into text editor then into Cpanel with no problem.

    Doug March 4, 2009

    please see my thread at:

    http://diythemes.com/forums/thesis-customization/3798-custom-css-vs-custom_functions-php.html

    and help me trouble shoot your code for inserting the avatar next to each post. Your code will not cut/paste into my php file.

    thanks. djeeg

    Doug March 4, 2009

    I tried the copy/paste with a text editor, and still have the problem. I even tried typing the entire code in by hand, problem with “#84617;” persists. HELP!

    Marko Saric March 4, 2009

    @Doug – This is exactly how it looks like in my custom_functions file:

    function author_avatar() {
    echo '';
    }
    add_action('thesis_hook_before_headline', 'author_avatar');

    Doug March 4, 2009

    wow, finally got it. The quotes that are in your cut/paste above create some problems, and even using a text editor didn’t sort it out. But, I did get the image up there….

    BUT, the image is above the post title, not next to it. Is that due to the image being too big? Or some other code item.

    I really like this feature, thanks for putting it up!

    Marko Saric March 4, 2009

    @Doug – As long as it is same size as mine avatar it should look fine. Maybe you forgot to put this in custom.css file:

    .custom .title-avatar {float:left; width:5em; margin-right:1em;}

    Don Power October 11, 2009

    Hi Marko! My avatar is showing up on top of my blog post title even though I copied this code: .custom .title-avatar {float:left; width:5em; margin-right:1em;} into my custom.css file. I tried goofing around with em and even changed float:right but the grvatar did not move from the top.

    I even deleted the code from custom.css and it is still on top of the post title instead of on the left.

    1. Any ideas as to how I might get it to work?

    2. I don’t want to change the size of my actual gravatar image on file but I would like it to appaer smaller on the blog titile. Is there an attribute to resize the gravatar image when it displays in the blog title – so that I can keep my original gravatar image/size intact?

    Thanks!

    @donpower

    Marko Saric October 11, 2009

    You can resize the avatar in an image editor and upload both the normal size and mini size onto your server. Normal size you can use for whatever you were using it for, while the mini size you can use to show in your posts.

    Don Power October 11, 2009

    Thanks – that will address the size issue but what about th eimage floating on top? How do I get it to align left? I put the right css code in custom.css but it doesn’t seem to do anything )ie: the gravatr disoplays on top whether or not the custom.css code is there. Any ideas?

    Thanks.

    - Don

    Previous post:

    Next post:

    Search Enginedata recovery