Translate This Blog
Always Remember To Back Up Your Template Before Attempting Any Of The Tweaks On This Site

New Template Backgrounds (Blogger)

The new templates are a bit different from the older ones. In the older templates you would change the background in the Edit HTML section of your template, under the body {.
Now with the new templates you can change it though the template designer.

To change to your own custom background you need to go to.
Design> Template Designer> Advanced> Add CSS

Once you are in there you will place a code like this below.
.body-fauxcolumn-outer {
background: url(http://www.example.com/image.png)PV RV;

background-attachment: AV;
}
.body-fauxcolumn-outer div {
background: none;
}
RED: This is the image URL.
BLUE: This is the positioning variable.
ORANGE: This is the repeat variable.
GREEN: This is the attachment variable.

Now I will explain the variables and their purpose.

Positioning Variables (PV):

This is the image position in relation to the center of the element (In this case it is your whole screen) . You can use any one of these variables below.

* top left
* top center
* top right
* center left
* center center
* center right
* bottom left
* bottom center
* bottom right

Repeat Variables (RV):

This is how the image repeats itself.

*repeat (Repeats Y and X also known as tiled)
*repeat-x (Repeats Horizontal)
*repeat-y (Repeats Vertical)
*no-repeat (No repeat)


Attachment Variables (AV):

This will control if the image moves with the screen when your scroll or stays in place.

*fixed (Stays in place)
*scroll (Scrolls with screen)


Now after your done the code may look like this below.
.body-fauxcolumn-outer {
background: url(http://www.example.com/image.png)top center repeat-x;
background-attachment: fixed;
}
.body-fauxcolumn-outer div {
background: none;
}
Note: some newer templates may have conflicting elements that may cause the background to not work as planed.

Here are a few below that I noticed you need to differ from the instructions.  If you are using one of these template you may have to place the codes below.

Watermark 3 Template:  (grassy background image)

.main-cap-top .cap-left {
background: none;
}
.main-outer {
background: none;
}
body {
background: none;
}
.main-cap-top .cap-right{
background: none;
}
.body-fauxcolumn-outer {
background: url(http://www.example.com/image.png) PV RV;
background-attachment: AV;
}
Simple Template and  Watermark Template:
body {
background: url(http://www.example.com/image.png) PV RV;
background-attachment: fixed;
}
.body-fauxcolumn-outer .cap-top {
background: url(http://www.example.com/image.png) PV RV;
background-attachment: fixed;
}
The positioning variables and Repeat variables must be the same for both. The attachment must be  set to fixed.   You don't have to follow this and you can use 2 different images for a custom design. However this is what I had to do to get a single image to display correctly.

12 comments:

the original Dopey Kid said...

Thank you SOOOOOOO much! Great help!

Jordan Paige said...

I put in the code and nothing changed on my preview screen. Do you know why this is?

AiresOFwar said...

Do you have a thread in Blogger help open up where I can answer to this? If so can you give me the thread or send a email contact with your blog URL and code you were using.

mikwei said...

Just setup an acct, and I'm lost on your 1st step:
Design> Template Designer> Advanced> Add CSS

I do not have this option, where do I find it?

AiresOFwar said...

If you go to www.blogger.come you will see the Design Option on your dashboard. Just follow from their. The Classic template do not have this option.

Bob Merc said...

When I put your coding in I see no changes in the preview below.

AiresOFwar said...

This post is outdated. Blogger has a image upload option in the Design--> Template Designer-->Background. This will allow you to upload your own custom background. If it does not allow you to do so then you might be using a older template. In which case this is not the correct code to use either. http://www.tweakmyblogger.com/2010/07/adding-background-image.html

toxicsludge said...

Thanks a million!

Winona said...

Hi, I'd like to have a bunch of images (sponsor logos in this case) on the left or right side of my blog. In the area where you see the background. Is this possible? Thanks for any help!

Here's my blog: http://cxbar2010.blogspot.com/

AiresOFwar said...

Why don't you just make a background with all the images on it and upload it as a background.

Amirah Farhana said...

Hi. I've made my own background for my blog and the thing is, my custom made wallpaper has my own footer. how can i make my background to scroll together as i scroll down and towards the end then only my footer from my background last. does this make sense? i've seen some professional blogs did this, so maybe if u can help?

AiresOFwar said...

The Css property "scroll" will make the image scroll with the pages while the property "fixed" will keep the image in the same place. I am not sure if either one of these will create the affect you want since the content area is always changing in size. You might be better off using a separate background image for the footer.

To post a comment click the link below but please do not post hyperlinked text in the comment box. I will not publish it and I will mark it as spam! Post a Comment
Web Design Blogs PageRank