Customizing your header: add an image

I just love the Minima template. It is so versatile. New discoveries keep turning up. My last great discovery was how to tweak the heading to my liking. It involves:
  1. finding an image and cropping it to fit (once again using Irfan View)
  2. upload this image to your web host
  3. put this code in your template between the <style> and </style> tags in your blogger template:

    #header {
    width:660px;
    margin:0 auto 10px;
    border:1px solid #ccc;
    background: #fff url(http://your image.jpg) no-repeat top right;
    }
  4. change the URL between the parenthesis from http://your image.jpg to the URL assigned by your web host
You notice that it says "no-repeat top right". That moved my image to the right. You can change that to left or center. Depends on your design. Late one night I was surfing and found a great use of a small graphic on the left...if only I had saved the site. But, that was my inspiration.

Also see: The Gimp: New Custom Header

post signature

146 comments:

  1. How do you keep the blog title from showing up across the front of the new header?

    ReplyDelete
  2. smokes, If you don't want the title to show, go to 'settings/basic' in your template section. Leave the first two boxes empty. I think that should do it.

    ReplyDelete
  3. Thanks for your help, it's been very informative. Quick question... how do I get my new banner to appear correctly sized across the top of the blog? At the moment it is appearing way too small.

    ReplyDelete
  4. ali, if you added an image to your banner, it should not change the size of the orginal banner. But, you can change the size of the orginal header by finding: #header and #description in your template and changing the width element.

    I hope this helps. If you would post your blog URL, I could see exactly what you mean.

    ReplyDelete
  5. smokes, I re-read your comment, and to get rid of the blog title, follow the instructions on this post:
    http://bloggeruniversity.blogspot.com/2006/05/gimp-new-custom-header.html

    ReplyDelete
  6. anniebluesky, do you know how to make the image in the header clickable?

    ReplyDelete
  7. I mean to add hyperlink to the image in the header.

    ReplyDelete
  8. @anton, add this to where you have your 'image.jpg' in you blog template:

    <a href="your-link-url"><img src="your-image.jpg""></a>

    That should do it. I think there are 2 places in your blog with the header image.jpg

    ReplyDelete
  9. @anton, sorry, I think that will work with the orginal blogger...not sure about beta...haven't tried it yet.

    ReplyDelete
  10. @anton, I'm working on a post for this...should have it out in a day or so!

    ReplyDelete
  11. Annie, thanks a lot for your efforts. I will be expecting your post :)

    ReplyDelete
  12. Here's a way I just figured out to replace the blog's title and description with an image. First go to Edit HTML and in the header-wrapper div change locked value from true to false. Save changes and go to rearrange page elements. Now you can remove the header. After removing it, add a new page element (image) and drag it to the top. You're done. If you want to change its postion, go to Edit HTML again and in the header-wrapper part of the CSS Style change the text-align value to left, center or right.

    ReplyDelete
  13. @1977, I'm going to play with that and see if I can get it to work. If so, I will write a post! Thanks for sharing!

    ReplyDelete
  14. @1977, I did the post! Thanks for the hack. You can see it here:

    Blogger Beta: Using Widgets for Your Header.

    ReplyDelete
  15. Phew! Considerable hair loss over this one! I never did find those style tags but I did discover the reason why my image wouldn't show up in the header space - it was because I needed to add "height" as well as width - i.e.

    #header {
    width:700px;
    height: 100px;
    margin:0 auto 10px;
    background: #fff url(image location)no-repeat center;
    }

    Tha probably would have occurred to most people sooner than it did to me! Oh well, now I can sleep.

    Cheers Annie,
    SJ xx

    ReplyDelete
  16. @skanky jane, Sorry you had problems. There is always something. Glad you figured it out! For future reference, this is what your opening style looks like and what it is before:

    <style id='page-skin-1' type='text/css'>
    /*
    -----------------------------------------------
    Blogger Template Style
    Name: Minima Stretch
    Designer: Douglas Bowman / Darren Delaye
    URL: www.stopdesign.com
    Date: 26 Feb 2004
    ----------------------------------------------- */

    And this is the closing style tag:

    /** Page structure tweaks for layout editor wireframe */
    body#layout #header {
    margin-left: 0px;
    margin-right: 0px;
    }

    </style>

    Just in case the need arises to find it again!

    ReplyDelete
  17. Doh! Thank you Annie - yes my template doesn't have the style tags - I figured I had to be in the right place though. Thanks for your reply!

    SJ xx

    ReplyDelete
  18. Annie, have you already find a way to add a hyperlink to the image in the header?

    ReplyDelete
  19. @annie
    google already added this feature to it's layout page..
    http://bforbloggerbeta.blogspot.com/2007/04/add-image-header-to-blog.html
    anyways..awesome blog :)

    ReplyDelete
  20. AH! I've figured out how to input the heading image, but the borders are still hiding it. Check it out here. Get back to me ASAP!

    ReplyDelete
  21. Got it; thanks for the info anyways.

    ReplyDelete
  22. Thank-you, I was wondering how to do that.

    ReplyDelete
  23. Annie,

    When I hacked my header/header to have more than one widget in it I removed the borders that were there. But when I do that the text no longer seems to fit right. It ends up spreading to fill the whole area.

    How did you keep your text spacing looking neat?

    ReplyDelete
  24. mrbrownthumb, My header is an image, complete with the text on it.

    ReplyDelete
  25. Hi Annie,
    Help me pleeease! I am a new blogger. I just started to create one and already got stuck at the header itself! Here's what I wanted to do:
    I'm using Sand Dollar and I have an image of 1230 x 230px. When I insert it from the computer, size is getting reduced to almost half with almost half the empty space on the right. I wanted to go across the screen in actual size.

    Please help... I know I may sound silly. Here's the link:
    http://golden-memories1.blogspot.com/

    I also like to try this in Minima. Waiting for your valuable guidance.

    ReplyDelete
  26. @Comics Forever, with that template, I had to do something different for it to work. First, go to Blogger Beta: Using Widgets for Your Header. Follow the instructions, except don't "Add a New Page Element/ Picture". Instead follow the second update and "Add a New Page Element/ HTML Javascript". Put this code in the window (leaving the Title field blank):

    <center><a href="THE URL OF YOUR BLOG"><img border="0" src="THE URL OF THE HEADER IMAGE"/></a></center>

    Then, in the CSS section of your template, find:

    #header {
    padding-top:0px;
    padding-$endSide:0px;
    padding-bottom:0px;
    padding-$startSide:0px;
    margin-top:0px;
    margin-$endSide:0px;
    margin-bottom:0px;
    margin-$startSide:0px;
    border-bottom:dotted 1px $bordercolor;
    background:$descbgcolor;
    }

    and change it to:

    #header {
    padding-top:0px;
    padding-$endSide:0px;
    padding-bottom:0px;
    padding-$startSide:0px;
    margin-top:0px;
    margin-$endSide:0px;
    margin-bottom:0px;
    margin-$startSide:0px;
    border-bottom:dotted 1px $bordercolor;
    background:ffffff;
    }

    That will give you your header in full and it is clickable.

    ReplyDelete
  27. Dear Annie,

    Thanks a million. I have tested it in a different test blog and it is working!!! You are a great help for absolutely new bloggers like me. I have learnt a lot in the process. YOU ARE A STAR!

    ReplyDelete
  28. @Comics Forever, I'm so happy it worked for you. It worked in my test blog, so I was confident it would work for you too. But, as I've found out, you just never know!

    ReplyDelete
  29. @Comics Forever, I'm so happy it worked for you. It worked in my test blog, so I was confident it would work for you too. But, as I've found out, you just never know!

    ReplyDelete
  30. Hi Annie,
    Me again! I was trying another blog header in Minima. I uploaded my animated gif (650 x 381px) in Photobucket and tried to give the link 'from the web' in 'edit header'. It simply says: "Invalid image url." I just can't get it right. Help pleeeaaase!

    ReplyDelete
  31. @Comics Forever, I'm looking at your blogs and the animated header is working on Comics Forever and Comic World. Did you figure it out, or is it a different blog or different header?

    ReplyDelete
  32. Hi Annie,
    I was trying on a different blog using Minima template where I was getting this message ("Invalid image url.") when I was trying to give the link for animated gif from Photobucket for the header.

    Can you please help!

    ReplyDelete
  33. @Comics Forever, are you sure you have the correct URL? Double check.

    Otherwise, send me the link to your image and let me test it.

    ReplyDelete
  34. Hi Annie,
    I hope I had done the right thing, but it doesn't seem to work. Anyway I have sent the link by email. Thanks for your help again.

    ReplyDelete
  35. @Comics Forever, the image is rather large. I'm only saying that because the code has to reflect this.

    Here is the code I tested and it worked:

    #header {
    width:650px;
    height:381px;
    margin:0 auto 10px;
    background: #fff url(http://i246.photobucket.com/albums/gg113/comicrazee/ICCHeader1.gif) no-repeat;
    }

    ReplyDelete
  36. I am using minyx xml template for my blogger blog. How to change custom header image in that?
    There is no style /style tags in the xml template.

    Please help.

    ReplyDelete
  37. @Rajeev Edmonds, I'm not familiar with that template. If you could send me the xml file I'll take a look.

    But, it will be next week before I can do anything with it...I'm going out of town for the next 4 days.

    ReplyDelete
  38. how to add image to my post using codes?cause if i follow the normal steps itz always failed.i can't upload any of my pictures to my post.

    ReplyDelete
  39. @Anonymous, how strange that you can't post a photo. Do you click on the little image icon in the post editor?

    Here is a way to manually get a photo in your post. You must upload your image to a web host. Then get the URL of the image and paste in this code:
    <img src="URL">

    ReplyDelete
  40. Is blogging always this frustrating? I can't even figure out how to add a link.

    ReplyDelete
  41. Hey!

    I had a question and I've been searching everywhere and can't find the answer. I want to know how you can put multiple images in the header section like this girl's: www.leblogdebetty.com? Did she use Photoshop or is there a way to do it with code? Thanks.

    Link to my blog: barepeppermint.blogspot.com

    ReplyDelete
  42. @Tony, those images are the header it's self. Done in an image program such as Photoshop or Gimp.

    ReplyDelete
  43. @tony
    as anni said it is photoshop i can do it for you if you want send me your images and what you like to do on samixx@gmail and sure i can do it 4 you

    ReplyDelete
  44. As far as i suggest Your Web site acts a great role in providing information to targeted visitors. I recognize or rated it as excellent.

    ReplyDelete
  45. I love the minima template for it's simplicity. You can customize so much with just tweaking the code.

    Thanks for the example for how to add you own graphic into the header.

    I wish, there was a way with Blogger to edit a CSS style sheet separate from the page HTML.

    ReplyDelete
  46. I cannot find < style > and < /style > in my blogger template. But see the following:

    Blogger Template Style
    Name: Thisaway
    Designer: Dan Rubin
    URL: www.superfluousbanter.org
    Date: 29 Feb 2004
    Updated by: Blogger Team

    What to do?

    ReplyDelete
  47. i was looking for this from long time , how to do few things which r mentioned above like adding images etc, its a great post , very useful to people like me .thnaks.

    ReplyDelete
  48. Abhishek Parab I found it. Just use crtl+f to search. My browser fount these lines immediately.
    P.S. Thanks to all it is really useful.

    ReplyDelete
  49. Hi, so i've been reading and reading and havent found anything that will help me, so my problem is i put the code in and when i preview the image firstly doesnt show up but then when i hit button to make the screen full size of my monitor my entire blog wipes out. ughhhh frustrated. My image is this http://picasaweb.google.com/lh/photo/GXh9mqGHrCh-TR8W1JLBZQ?authkey=Gv1sRgCJbfk_aGyLuN9gE&feat=directlink

    is that the first problem?
    Im ready to give up.
    Thanks for any help.

    ReplyDelete
  50. I haveone question, how do make a hyperlinik for a background image on the header (I want to make the image clickable)?

    here is the code:
    #header {
    background: url('http://localhost:4770/324a9665d5375b0106a4de2e9d5e03fa/image/59e4268909476427.jpg?size=160');
    background-repeat: no-repeat;
    height: 200px;
    width: 440px;
    text-align:left;
    padding: 0 0 0 170px;
    }

    this is my blog URL: http://juragan-dinar-irak.blogspot.com


    any help would be much appreciated

    ReplyDelete
  51. Hi Thanks for the info, i just wandering if i can use this banner to worpress? if not might use other blogging sites. thanks alot!

    ReplyDelete
  52. hi anne thats for the infos ---scout

    ReplyDelete
  53. Hi I downloaded this blog template from blog crowds

    http://www.blogcrowds.com/resources/blogger-templates/45-sky3c

    However when I go to layout in blogger
    Then edit header image
    Then upload an image from my computer nothing happens, the clouds /skies remain (default).

    Can someone please help urgently?

    Regards

    ReplyDelete
  54. I always tried to customize the header of my blog but didn't know how?. thanks you for sharing this information

    ReplyDelete
  55. Your information was very important for me because it could change the image of the title of my blog

    ReplyDelete
  56. the header makes the website look better..that's the first thing someone sees when they visit your site so it has to be something really creative..

    ReplyDelete
  57. i just wandering if i can use this banner to worpress?

    ReplyDelete
  58. anyone can post how to install a flash header on a word press theme? I've tried one but the animation didn't came out, just plain white box! :D

    ReplyDelete
  59. This is a great post. You are sooooo technical I have found this blog post amazing and other posts here too. I've bookmarked this blog so I can revisit.
    Thanks for sharing

    ReplyDelete
  60. This information come just in time for me. I was searching for a long time wondering how to customize a header.Thank you for the excellent installation guide, which is like magic, I think I learned a lot.

    ReplyDelete
  61. This is a great post with reference to customizing a header. Its hugely come in handy!

    Thanks alot!

    ReplyDelete
  62. Thank you very this tip, after adding an image to my template header it looks more beautiful now, but i think i need to minimize the size of the image because it takes too much time to show up.

    ReplyDelete
  63. I have seen that some headers have that but I had no idea about how to ad it. Looks nice. Thanks for the explanation.

    ReplyDelete
  64. Thanks for sharing this information . It is useful for me. I offers everybody go to visit at http://www.myeasypaymentbankamerica.com

    ReplyDelete
  65. Thank you so much, I looked everywhere to learn how to do this.

    ReplyDelete
  66. This is a fantastic web site. Good sparkling user interface and nice informative blogs. I will be coming back soon, thanks for the great blog.

    ReplyDelete
  67. Can someone help me out I have a beautiful banner and Have tried but Im no Tech savvy girl :p I want to add a picture to my blog. Please Please help me. Would be happy if someone just did it for me. I will follow you and comment on your page if you do. Please take a look http://bee-enlighten.blogspot.com/

    ReplyDelete
  68. Thank's for the info. It helps. ^_^

    ReplyDelete
  69. Thanks for giving coding. But I think it will not much beneficial for SEO.

    ReplyDelete
  70. I really like your tips, they are very helpful for new bloggers.

    ReplyDelete
  71. Thanks for the great information, and especially thanks for giving the code, instead of just talking about it.

    ReplyDelete
  72. Thanks for your help - very informative. I do have a question; how do alter the size?

    ReplyDelete
  73. @benjaming, if you header is 450px, then in the code reflect that change from

    width:660px; to


    width:450px;

    ReplyDelete
  74. Thanks for the info. You make me learn about HTML code..

    ReplyDelete
  75. Hi Annie,

    Thx for your coding help to make website more attractive. I will try on my website.

    ReplyDelete
  76. When I hacked my header/header to have more than one widget in it I removed the borders that were there. But when I do that the text no longer seems to fit right. It ends up spreading to fill the whole area.

    ReplyDelete
  77. Huge thank you, just started my first blog and found this useful :)

    ReplyDelete
  78. I was trying on a different blog using Minima template where I was getting this message ("Invalid image url.") when I was trying to give the link for animated gif from Photobucket for the header.

    ReplyDelete
  79. hi, thanks for the nice explanation. but i am having some problems. first of all i am using wordpress. when i upload the image to my host, i get an "ftp" url instead of http. (i use filezilla btw) anyway, i use that ftp link for editing the style.css file, but nothing changes. i would appreciate if you could tell me where i am screwing this up.

    ReplyDelete
  80. @spoilsport, sorry, but I don't work with WP, so I don't really know their idiosyncrasies.

    ReplyDelete
  81. This article is very helpful, long search for this article! Thank's!

    ReplyDelete
  82. After knowing how to add a header image in blogger, I would immediately replace the header image on my blogger. Thanks this article really helped me!

    ReplyDelete
  83. hey dude.. it really helped me.. thanx a lott

    ReplyDelete
  84. very good informartions, thx's....

    ReplyDelete
  85. seen on post
    Change URL and seen on post. For instance, to have a link to BlogU, the code would look like this:
    BlogU
    very good informations, thx's..

    ReplyDelete
  86. Hi, I have tried to use it here. But I can't why?M6.Net Windows Hosting

    ReplyDelete
  87. I have this classified website and whenever I open it on a small screen the adsense ads goes to a different unwanted place. Can anyone please help????


    Free classifieds

    ReplyDelete
  88. I tried this code and it did worked for my blog. Actually almost all the codes that I used for my blog came from this blog. This is indeed my blogger university and the makers are my professors. I am thankful to this site for helping me with all my HTML concerns. :)

    ReplyDelete
  89. Yes this code works fine, as seen in my blog torrentreview.com

    ReplyDelete
  90. Thanks for this post working with images and banners has never been one of my strongpoints :-)
    Have a nice day

    ReplyDelete
  91. even I like Minima......have tried the three column version.....its simple but easy for me......I am about to try wordpress and thesis theme now

    ReplyDelete
  92. good code. makes a muck more unique layout.

    ReplyDelete
  93. Thanks! You make me realize I can do a lot better with my blog I keep for my work. I will come back here for tips :)

    ReplyDelete
  94. no-repeat top right

    Thanks for that, been trying to work out what I was doing wrong for ages, just couldn't get it positioned correctly!

    ReplyDelete
  95. Hi,
    Really nice steps to customize headers.I enjoyed reading it completely.Thanks for sharing

    Regards,
    Vanessa

    ReplyDelete
  96. Have my header text. I add an image and it only allows me to put the text over the image on the left, or under the image. How do I get the image on the left and the text on the right? Do I need to create this in Photoshop only?

    ReplyDelete
  97. @bamalynn, I generally do text headers in Photoshop because then I have more freedom of placement.

    ReplyDelete
  98. Thank you for the html on customizing my blog header. I love yours btw! Simple yet artistic! billiards tables Yay! It worked! Thanks Annie!

    ReplyDelete
  99. Very usefull article. Thank you.

    ReplyDelete
  100. Nice, this seems really helpful, i just made a small tutorial to delete the navbar that a lot of people hate:

    http://geektual.com/borrar-la-barra-de-navegacion-en-blogger/

    ReplyDelete
  101. You have to learn little bit of coding and then you can make all the small changes that makes your blog individual. As Always thanks for this tip.

    ReplyDelete
  102. Thank you for this post - I've been experimenting with headers on my own blog, however with limited success. At the moment, I'm trying different programs that will generate the header at the appropriate size - not to just find one that will match everything else!

    Thanks!

    My Home Business

    ReplyDelete
  103. this is a great tutorial, thanks a lot I'M gonna give this a shot right now.

    ReplyDelete
  104. Thank you for this. I was able to differentiate my site. Liam
    www.tentreviewsinfo.com

    ReplyDelete
  105. Thanks for the tips, I am looking forward to see more HTML tutorials from you.

    ReplyDelete
  106. I agree, Minima is a great template, and its very versatile. With a little CSS know-how, you can tweak it to do whatever you need it to, while retaining the sleek simple design.

    ReplyDelete
  107. Another great post yet again, this site has helped me alot!

    ReplyDelete
  108. Cheers Annie, think that might resolve an issue we were having with the header for a while...

    ReplyDelete
  109. Does that work in most themes, or specific to yours annie?

    ReplyDelete
  110. We were actually thinking of using the Minima template, would you recommend it?

    ReplyDelete
  111. Thanks Annie, This is helpful! :)

    ReplyDelete
  112. With a little CSS know-how, you can tweak it to do whatever you need it to, while retaining the sleek simple design.

    ReplyDelete
  113. This site is Really helpful for me.You have to learn little bit of coding and then you can make all the small changes that makes your blog individual.

    ReplyDelete
  114. I'm totally lost with IrfranView :(
    But I'll try this anyways :)

    ReplyDelete
  115. I was trying on a different blog using Minima template where I was getting("Invalid image url.") when I was trying to give the link for animated gif from Photobucket for the header.
    can any one tell me the problem

    ReplyDelete
  116. use "img" for image "href" for link/url
    hope that helps

    ReplyDelete
  117. Hey Annie... Thanks for the heads up... I have never used Ifran View before... thats what I like about sites like Blog U...great info and free! Thanks...

    ReplyDelete
  118. Hey Annie... Thanks for the heads up

    ReplyDelete
  119. thanks for the info.
    i really love the colours of your blog theme.. it looks so nice n clean.. :)

    its a link if anyone interested about forex

    ReplyDelete
  120. It's good information, especially for beginner HTML programmers. It can be difficult at first. :-)

    Speaking of images, feel free to grab some free ones at
    StockFuel
    .

    ReplyDelete
  121. adding image in header is a new idea to me.... thanks for the code...m can i use it on a regular website...

    ReplyDelete
  122. Thanks for the info. I'm newbi, this veri usefull for me thnaks....

    ReplyDelete
  123. Nice. Helpful articles.It's Must be helpful articles for greenhorn blogger

    ReplyDelete
  124. nothing changed after putting the code,plz help

    ReplyDelete
  125. I am really thankful this website and the proving the great information and the using the very great technology. These blocks provide the information very help to the customers. I am very impressed for this information.

    ReplyDelete
  126. Very good friend, very good information, thanks!

    You can also change the colors modifing the background or a line

    ReplyDelete
  127. I have been trying to figure out how to add a photo to my header for a while. I am so glad I stumbled across this site. I have copied the code so I can work on it when I have more time. Thanks for the valuable information here.

    BlogU

    ReplyDelete
  128. Thanks for the info, i've finally can make can make changes in my header

    ReplyDelete
  129. Thanks for the tips and tricks , everyone

    ReplyDelete
  130. I found the blog to be really informative. I think you are discussing about how to increase ranking in search result by using image.Keep blogging.

    ReplyDelete
  131. hi
    www.alazizonline.com This is my web site and I want to change its logo can any one let me know how can I change it ..........?

    ReplyDelete
  132. I find this blog to be informative and useful. I got to learn more about coding. Nice blog you have posted.

    ReplyDelete
  133. can i use non .jpg file? such as .gif or .png?

    ReplyDelete
  134. Annie, do you know how to add the sign up box just above the content and below the header?

    ReplyDelete
  135. @Projekty Domow try this:
    http://bloggeruniversity.blogspot.com/2006/09/sticky-message-board.html

    ReplyDelete
  136. hey, I have the same question, and I went to that page and sea lot of code. I think that I will try it on one of my pages, thank you

    ReplyDelete
  137. I really like your tips, they are very helpful

    ReplyDelete
  138. Your way of giving information is very nice. This article increase my knowledge.

    ReplyDelete
  139. same with me. I like minimalistic design so much. It is something so amusing and just so incredible to know that life is just like design. the simpler... the better. control your design as you control your thoughts and you should be just fine

    ReplyDelete

Due to,happily, a steadily increasing readership, I'm not able to answer or solve all comments/problems. I do keep track of them and answer what I can as time allows. This is my attempt to balance home and blog.

To add a link in this comment, copy and paste this code in the comment window: <a href="URL">seen on post</a>
Change URL and seen on post. For instance, to have a link to BlogU, the code would look like this: <a href="http://bloggeruniversity.blogspot.com">
BlogU</a>
To use the DOFOLLOW attribute on this blog, please remember to use the NAME/URL option when commenting rather than linking to your profile page for more exposure!