39 How to create a custom header in Blogger

My blog template is based on the Denim theme, but since I didn't particularly like the header, I replaced it with my own graphic, along with a link back to my site. Want to know how? Read on!

First, you'll need to create your new blog header using your favorite image creation software (eg: Paint, CorelDraw, Gimp, Photoshop...). Take a look in your blog template HTML and make a note of the width of your blog header; you'll probably want your new blog header to be this width too! Don't worry about the height: it can be as tall or as short as you want.

Once you've made your new blog header, you'll need to tinker with the HTML of your template a little bit. Make sure you backup your existing template before doing anything more, just in case something goes wrong and you need to pout your current template back in place instead. Then look for the following section of code:

<div id='header-wrapper'> <b:section class='header' id='header' maxwidgets='1' showaddelement='no'> <b:widget id='Header1' locked='true' title='Header (Header)' type='Header'/> </b:section> </div>

The elements highlighted in bold need to be changed. So:

  • Change maxwidgets='1' to at least 2 in order to be able to add another element in the header section.
  • Alter showaddelement='no' to showaddelement='yes' to be able to add a different element to the header section (your new image)
  • Replace locked='true' with locked='false' so that you can later remove the old header.

Now save your template, and go back to the layouts section in your dashboard. You'll notice that you can now add another element to your blog header!

If you only want to add your new blog header, and don't want to have this linked to your home page, you can easily do this by choosing to add a "Picture" element to your blog and uploading your new header.

However, if you prefer to link your header to your homepage (as in the default Blogger templates), you'll need to do a little more work first. Upload your image to a remote site (there are many free hosting accounts available, such as FreeImageHosting.net) and make a note of the full address of your file, including the extension (eg: www.yoursite.com/images/yourimage.jpg). Then, choose to add a "HTML/Javascript element and add the following:

<img src="http://www.yoursite.com/images/yourimage.jpg">

Replacing the image source with your own image address of course! This is the code needed to display your new blog header. Now to make this image become a link back to your blog's home page, you would need to add link tags as follows:

<a href="http://yourblogaddress.blogspot.com"><img src="http://www.yoursite.com/images/yourimage.jpg"></a>

Save this element and view your blog. You should see both the original blog header and your new blog header. Make sure your new blog header looks the way you want it to, then go back to edit the layout.

This time, click on the "header" element (the original blog header), and choose "remove page element". Once you do this, the original header will be completely removed, leaving only your customised one (a good reason to have saved a backup of your template, just in case!).

And there you go: your very own customised blog header! Enjoy!

Technorati Tags:

39 Comments:

25 July 2007 04:26 CrazyKinux said...

Just implemented it; works like a charm!!

15 August 2007 22:27 kate5kiwis said...

thanks *ever* so much, your tutorial is so helpful. my blogger template has no original header so it was a bit of a fiddle to make the new one fit...
i made a few special modifications myself (guess the movie line lol)
but...
i did it!!!!!

2 September 2007 05:48 Dolores said...

How did you add buttons next to your header? I think maybe there was a how-to on that, but I can't find anything on it now. Thanks.

2 September 2007 14:52 Amanda said...

Hello Dolores,

For the header and buttons in my header section, I used a combination of the custom header (described above) and HTML tables, in which each table cell contains an image link (hope this makes sense!).

I will shortly be making some adjustments to the header section though, using DIV elements and CSS styling to make a similar effect.

If you would like some detailed explanations of the possible methods for this, send me an email and I'll get back to you about it.

Best wishes,

Amanda

21 October 2007 06:47 ashley &amp; jeremy parsons said...

HELP!! I am trying desperately to add a custom header. I did what you said in changing the HTML code, and then added page element, uploaded a picture, but it just would NEVER load. I tried it all different ways with a small enough file (76KB), so I have no idea what I am doing wrong!!

21 October 2007 10:11 Amanda said...

Hello Ashley and Jeremy,

Many Blogger blogs are currently having problems uploading images. This is a problem at Blogger's end, and is something they are trying to fix now.

If you need an alternative method to use images, take a look at This Post which explains a different way to link to images.

I understand your frustration as I am also unable to upload images, but I hope this will help you. Feel free to email me if you need any more help with this.

Best wishes,

Amanda

7 December 2007 11:10 Chocolate Monkey said...

WOW!

Thanks a ton for this great tutorial!

i was a bit bummed that my new cool 3 column template couldnt have a custom header but u have shed light on my blog!

It looks great and the tutorial was easy to follow!

again, thanks a lot!

24 June 2008 23:37 lifeMac said...

I know I'm a bit late to the party here- but what if your blog doesn't have that section of code? I can't find it anywhere.

25 July 2008 04:53 Jack said...

Thanks a lots!!

27 July 2008 21:03 pandaa bear said...

so you cant add any html tag to change the font or color of the header??

1 August 2008 01:10 CATC said...

i've done everything that you said. image hosted it and that and put all the right code in and it just hasn't shown up. what do i do?

4 August 2008 22:24 Greg Barr said...

Thanks for the write up, great tip well explained. That html/javascript page element is very powerful. I embedded over 200 lines of html and css to give the blog the same header as my corporate web site -- including the fully css-driven navigation with multi-level dropdowns. Neat.

28 August 2008 18:53 Matt said...

Hi there,

Is there any way to increase the width of your custom header?

28 September 2008 14:35 Ashe said...

I chose a blogger template without a header section at all, and I'm trying to figure out how to properly add one so that I can use your tricks for placing in a custom header. I've tried plugging in code from your site (and altering as needed for my situation), but I still seem to be missing something.

How to you add a header section to a template that doesn't have one to begin with?

24 October 2008 09:29
Rahul Jadhav said...

Thanks a lot amanda...i was looking for a way to add an image link to the header....do my blog header....thanks a lot

20 November 2008 18:16 Lisa said...

Ah! Perfect! Thanks!

2 December 2008 03:28 Amy said...

O MY GOODNESS!!!! You have no idea how long I have been trying to find an answer to this question that acutually worked for me!!

THANKYOU!

23 December 2008 00:31 Jason White said...

Hi,

How can I write my header in blood?

Thanks

Jason

22 January 2009 13:11 Rhian said...

Thank you for this great tutorial,
but what if i want a background colour for my post section but not attatched to the header? Can I do that?

Thanks

Rhian

28 January 2009 18:09 Jamie Henning said...

Absolute coolness! Have been trying to figure out to delete the stupid header text forever and substitute with my own logo/header. This was perfect! EXACTLY what I had been searching for! Thanks a gazillion!

--Jamie

31 January 2009 23:57 Dan and Holly said...

Thank you, thank you!!! I have been trying to fix my header for ages!!!!

6 February 2009 09:37 Brad Farless said...

Jason, I'm no pro, but you would probably have to make the title part of the image to get that kind of effect.

20 February 2009 19:08 Flo said...

Hi Amanda,

hope this post is not too old for you to answer my question.
I made a header with Photoshop, 660 pixels wide since my blog has the Minima Stretch template.
Problem is, when I saw my blog, I could see two empty spaces to each side of the header. So I widened up the image and uploaded it. I saw it fine, but other people say the image was too large and they could only see like 2/3 of it.
What is the problem? Is it a screen size issue, should I use the 660 pixel wide image?
Thanks a lot and congrats on such a great site.

http://www.flohabla.blogspot.com

25 February 2009 03:43 Jess said...

I did what you said, and I have a lovely clickable header now, but I don't know how to put text on top of the image.
Is that possible?
Please help! Or direct me to a site that will help. I've been searching all over google and can't seem to find the advice I need.
Thank you so much.
(jessica.sapoznick@gmail.com)

25 February 2009 05:36 Jess said...

Hi,
I think I left a comment earlier but I have a different question now. I am using your code but whenever I save it, the picture does not show up on my page. (it shows a small box with a question mark) When I go back in to look at the code, a / has been added after "my image url" and before >.
Is this what's making the image not show up?
Any help would be much appreciated.
jessica.sapoznick@gmail.com

9 April 2009 22:11 Kenneth Ignacio said...

THANK YOU SO MUCH!!!

17 May 2009 20:06 Svuio said...

Great help man, thanks! Cheers!

13 June 2009 22:52 Fiazio said...

You have helped so many souls, lol.
Many people forget to not include the style tags.
Also Its easier to copy the css at the start of the template .

15 August 2009 04:53 Terence said...

hi! how does this method affect SEO? Will the crawlers still be able read any keywords since you removed the original header? Thanks

19 November 2009 19:48 WEgif said...

Great inputs, if you need animated pics for your header, visit http://www.wegif.com/


Gif Photo Animation

6 January 2010 13:06 Rajj said...

hi, this post is very helpful to me and managed to put custom google search on blogger header. But i don't know how do i move google search on the same level of Blog title on this blog http://itshumour.blogspot.com I appreciate your help in this. Thx in advance...

2 February 2010 18:33 Lori @ Couponomic Stimulus Package said...

AWESOME! Worked great! Now I have a few more things to get ready and I'll be ready to put my new header up!!! Thanks!

17 February 2010 19:23 Nicole said...

thanks sosososososososososososo much!!!!!! i love my new header... one question: can i get that stupid border to go away? i'm using the minima template... thanks again! :) boyswhowearbows.blogspot.com

18 February 2010 16:16 riat8 said...

Thank you so much for the tutorial. Really helpful and would tweet this post please.

Thanks!

20 February 2010 22:55 Jonathan said...

Hi!

I am only elven *cough* noob *cough* and can't find the header width, or I'm too stupid too realize what it is. Where would it be located?

23 February 2010 22:09 Crimson Butterfly Scrapz said...

I have a question. I have an image I created, that is complete with buttons at the bottom of it. Ex: Home, Tutorials, PTU, FTU, FREEBIES, etc...I want to use that entire image as a header, so that if people click on Home, it goes to my home page. If they click on Tutorials on my header, it goes to the tutorial section of my blog. Etc. Is there a way to do this? I see it on ALL KINDS of headers. Here is an example of one: www.gothicinspirations.blogspot.com
You will see what I am talking about. MY blog is:
www.crimsonbutterflyscrapz.blogspot.com
PLEASE PLEASE help! Thank you so much!!

20 March 2010 06:53 lirik said...

thank you so much

23 March 2010 20:14 Mutuelle sante said...

Works great. good tuto. Thanks

Post a Comment

Browse through the Archives

All existing posts are still available to view while I'm working on the site, albeit seen in a much simpler interface. Feel free to browse through the archives to find tutorials, templates and articles to help you build a better blog:

Blog Archive

© Blogger Buster 2010 Home | About | Contact | Hire Me