Clickable Header Image in Thesis Theme

January 24, 2010 in Thesis Theme | View Comments

This is a short tutorial to show you how to replace the usual logo text in your header with a clickable image in Thesis theme. To do this simply put the code below into your custom.css file.

.custom #header #logo a {
display:block;
width:500px;
height:100px;
background:url(URL TO YOUR IMAGE) center no-repeat;
outline:none;
text-indent:-9999px;
padding:0em;
border:0em;
margin:0em;
}


.custom #header #tagline {
text-indent:-9999px;
}

This CSS code will move the existing text out of the screen and put an image in its place. Replace “URL TO YOUR IMAGE” with an actual URL where your image is saved.

You can see the example of how I did it on my Twitter Tips blog. You’ll also have to change height and width values according to your image size.

There may be better ways to put clickable image in the header, but this worked for me. I have tested it in Firefox 3.5 and Internet Explorer 8 and it looks OK.

If you have a better solution, please let us know in the comments.

If you enjoyed this article, you might also like:
  1. How to Add Custom Banner Ad in Thesis Theme Header
  2. Thesis Theme Tutorial: How to Add a Second Navigation Menu
  3. HeGeeks is Powered by Thesis Theme
  4. How to: Add Tweetmeme Button to Byline
  • alexwhalley
    OMG! It freaking worked!!!

    Finally!!!! and THANK YOU!!

    Ok, so now I need to make some headers..... is there a way to bring the text back? or is this a silly question and I should just remove the part of the code at the bottom that refers to this??
  • I forgot to mention you should always do a backup before doing any changes.
  • This is going to come in handy, right now I have the header on all of my business blogs linked, yet for some reason I haven't done it on my blog. Added to the sticky note for tomorrow.
  • When you put the code in do you have to open the custom css file in notepad then re-save it?
  • Yes, you can do it like that. Open the css file with a notepad, insert code and save.
  • OK and I take it, it doesn't matter where I put the code?
  • Put it after the text that is already in the file.
  • Thanks you more than anything.. The steps are simple ! Other websites has very complex and very long steps... Your one is very easy for a newbie like me. Thanks again...
blog comments powered by Disqus

Previous post:

Next post: