How to put a background image in your Tumblr theme


Putting or changing a background image or picture in your Tumblr theme is actually easy. However, the coding and changes to the html Tumblr theme to make it look exactly the way you want can get extremely annoying, depending on the skin you are actually using for your Tumblr layout.

For example, it may not be enough just to insert the url of your image, but you will have to edit, change or delete other background colors that could be covering your image background.

You might also be interesting in adding a scroll to top button tumblr in addition to the background picture. Let’s get started



How to Put a background image in your Tumblr Theme the right way and Size

  1. First of all, login into your Tumblr account and visit your very own Tumblr site.  Once there you will see in the top right corner a button that says Customize, click on it please.
  2. Now, in this new page, click on Theme on the top navigation bar and then click on Custom HTML at the bottom of the menu that has just dropped down (if you don’t see it you will have to close some bars in your browser theme to give it enough space to see the option Custom HTML.
  3. Copy the whole code you see here and paste it in a notepad and save it, this will be a lifesaver to go back to where we start in case you don’t remember the steps you’ve done.
  4. Now this is where it gets fun, we need to alter the inline css to include the image you want as the background of your Tumblr Theme.  First of all, find the following code in your theme:

  5. <style type=”text/css”>
  6. Now, after that code you should find this code “body {” and inside the body tag there should be the background: line.  It is here that we need to insert the url of the image you want to use for the layout.
  7. For example, in my Tumblr the background line looks something like this:

    background: {color:Background} url(‘{image:Background}’) top left fixed repeat;

    Now replace the {image:Background} with the URL of your image (if you have it in your computer upload it to Tumblr first ), and change the top left fixed repeat for top left fixed no-repeat.

  8. Click on Update Preview and verify the image is actually showing up as you want, if it does click on the SAVE BUTTON on the top right corner of your screen and that’s it.
  9. Is that it?, well I don’t really think so, because there are several other variables that could make your image not fit into the background, the image might be too small and then the rest of the background goes black, fixed body width, other background colors that may be hovering over your background, browser size, and image height as well, but these steps are the very first to change the background image in your Tumblr.

Important Note:  I believe that the single most important thing to know here is if the body tag has a fixed width or not, if it does, just edit your image to fit that size, if it doesn’t I recommend going for a image width bigger than 1600pixels (it depends on the screen resolution you are using actually) and a height bigger than 700pixels. Beyond this, there are many other ways to make your image blend with your background, specially if it was crafted in an editor, but for photos I guess that the major tip I can give.

Please post your questions here and I’ll help you fully customize the image into your current theme.

Tumblr has a really extensive documentation on how to customize your Tumblr theme html if you want to read it.


If you enjoyed customizing your tumblr theme by adding some simple background image, you will also want to add the already popular tumblr energy saving codes, which are basically screen savers for browsers, that help reduce your monitor consumption energy when you leave them turned on.

18 Responses to "How to put a background image in your Tumblr theme"

Add Comment
  1. Aishah

    August 13, 2010 at 9:57 am

    thanx to u ! i get to put my background image on my tumblog.. I TRIED LIKE A HUNDRED TIMES USING OTHER WAYS BEFORE I FOUND UR TIPS ! WOOH~~ THANKS A LOT !! =)D

    [Reply]

  2. Christina

    March 1, 2011 at 10:52 am

    Just want to say thanks! Successfully changed my background with zero coding knowledge.

    [Reply]

  3. Layney

    October 7, 2012 at 4:45 am

    Hey, I already have an edited theme from a specific website,
    and it has a plain white background.
    I did exactly what you said, but it isn’t changing. Is that because its a specific theme and is unchangeable or am I just doing something wrong? xo

    [Reply]

  4. Lulah

    November 7, 2012 at 6:36 pm

    i doesnt seem to work for me? i update preview and i just have a plain white background :( i dont know if its anything to do with the theme i had before, the coding was slightly different, would it help if i changed my theme to another one with the same coding before i changed the background? help!

    [Reply]

  5. Bri

    November 10, 2012 at 9:04 pm

    I have tried this so many different ways and it is just not working for me! I have used it successfully on another blog but this one is fighting me. I was hoping if I gave you the specifics you could help. After background: url (___) I insert the url into the parentheses. After that it says “no repeat center”. Whenever I click to update it does nothing. Sometimes it would show the picture for a second while it was loading and then revert back to the original white background. (The theme doesn’t even offer me the option to change the color as far as I can tell.)
    After that it says themeloading body { which I have tried to use as well but shows no difference either. Under that is left: -99999px;, then position: absolute; then *overflow: ;
    Hope that helps. I’ll be keeping an eye on this site and my email. Hope you can help!

    [Reply]

  6. Caroline

    November 21, 2012 at 7:22 pm

    So I’ve gotta say your steps are really helpful and understandable but it didn’t work for me. :( I started typing everything in that your tutorial said and a bunch of stuff turned green. I just kept going. I decided on a picture from DA and typed in the url just like you said. When I clicked update the screen flashed but the theme stayed the same. I redid it at least three times but it never worked.

    This is what I typed “”

    The link is highlighted green in the CSS. Did I do something wrong? I already have a different theme from the theme garden, do I need to get rid of that first?

    [Reply]

  7. Alexander

    December 1, 2012 at 10:03 pm

    I don’t really know which code in the HTML is correct and every-time I paste my image URL in {background- color} nothing happens. Having no knowledge about coding and just beginning to use tumblr I’m finding this very difficult -.- The theme I have currently is PROLOGUE by haydenhunter.

    [Reply]

  8. Cortney Hopkins

    December 7, 2012 at 9:52 pm

    Why aren’t the URL’s that im using working? #SADface like i replaced it with the names of different colors and it works, but when i paste an image URL it doesnt.

    [Reply]

  9. kajal suriya

    December 8, 2012 at 7:41 am

    hi, i would like to put a gif set as my background but on the top right part of my theme and i dont know how to do it and i don’t know if im using the right kind of url. i also wanted to make the gray sidebar opaque, i can get it 100% transparent but i want a certain percentage not all transparent, if that makes any sense. can you help me? Thank you!! :)

    [Reply]

  10. Kris

    December 16, 2012 at 1:04 am

    It seems I’m having a bit of trouble getting it to work… I did all the things you said to do, but it doesn’t seem to be showing up. I don’t know what to look for really, I was trying to find if it had a fixed body width and height. I can’t seem to find anything about it, or even if there were other background colors there.

    The theme I’m using is ‘Next Saturday’, if that helps at all.

    [Reply]

  11. Andrea Gonzalez

    December 19, 2012 at 5:19 pm

    for some reason, the part where it says “background:” it just says “ffff#” and I have no idea what to make of it xD please help!

    [Reply]

  12. Taylor

    December 27, 2012 at 4:59 pm

    I need help, I followed your directions on how to change the background and it was successful. The only problem is, on the left side, there is a strip of pink that did not change. How do I get that to match my background? I tried finding the url for that lace that’s on my blog to fix it, but it didn’t work. I hope you can understand what I am talking about.
    Thank you.

    [Reply]

  13. lee

    January 6, 2013 at 12:54 am

    Hi, I’m using the “Pyramids” theme from TheMaxDavis ( http://themes.themaxdavis.com/theme/pyramids ) and I can’t seem to figure out how to do this. Any help? Thanks in advance.

    [Reply]

  14. Tora

    January 24, 2013 at 9:35 pm

    I’m not sure if you will still check this post as it’s a few years old, but I’m trying to edit my theme and nothing seems to be working. I’ve looked at around 10 different tutorials, and my background will not change. I’m wonder if it could be an issue with the theme I’m using now, or if I’m just THAT dumb and can’t do it… I need help!

    [Reply]

  15. Bety

    January 26, 2013 at 3:18 pm

    I can’t find the style type text ccs anywhere in the html..where is it?

    [Reply]

  16. daniel

    January 30, 2013 at 11:19 pm

    its not working for the minimalist theme because it doesnt have the background thing under it … any help?

    [Reply]

    Mr. Tumblr Reply:

    the background image needs to be created then, we’ll explain this in detail in a few days.

    [Reply]

  17. Arianna

    January 31, 2013 at 12:59 pm

    Hi, I’m having a bit of trouble. This is what my section looks like:
    background-image: url(‘{image:background}’);
    background-color: {color:background};
    background-attachment: fixed;
    background-repeat: {text:Background Repeat};
    {/block:IfNoBackgroundImageNoRepeat};

    And I’m trying to put a picture in the bottom right corner, with no repeats. Help!?

    [Reply]

Submit a comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>