How to Add Different Backgrounds In Blogger Pages

In the last tutorial, you learnt How to Add Different Backgrounds in Blogger Posts. Now this tutorial, will show you how you can have a different background for each of your page, thus giving your pages their own unique look. 



How to Add Different Background In Blogger Posts/Pages

Step 1. Log in to your Blogger Dashboard, then go to Template > Edit HTML.



Step 2. Select "Expand Widget Templates"

Step 3. Search (CTRL + F) for this tag:


</head>

Step 4. Just above the </head> tag, paste this code:

<b:if cond='data:blog.url == &quot;http://POST-OR-PAGE-URL.html&quot;'>
<style>
body {
background-image: url(http://DIRECT_LINK_TO_BACKGROUND_IMAGE.com/IMAGE.JPG);background-position: center; background-repeat:repeat; background-attachment: fixed;
}
</style>
</b:if>

Note:
  • Change: http://POST-OR-PAGE-URL.html with the URL address of your blogger post or page where you want the custom background to appear.
  • Change: http://DIRECT_LINK_TO_BACKGROUND_IMAGE.com/IMAGE.JPG with the direct link of your background image.

Step 5. Click on SAVE TEMPLATE and you're done.

How to Add Different Background Color or Image in Each Blogger Post

When you have multiple authors on a blog and want to make a specific post stand-out, then you can change your posts background color or place a background image behind them, each time is needed. Therefore, this tutorial will show you how to style each post differently by adding some codes in your Blogger posts. (this won't take effect if you have the read more function enabled on your blog)



How to Change the Color of the Post Background

When you create a post, switch to HTML, near the Compose tab and add the following code just at the beginning and at the end of your post content.

<div style="background-color: #DCC368; padding: 5px 8px 5px 8px;">
Your text goes here...
</div>

  • add the red line at the BEGINNING of your post.
  • add the div tag in blue at the END of your post.
  • replace the part in green with your own color (search for color's hex value)
  • "Your text here...." is where the Post content goes

It's done by wrapping your Post content into a "div" element. You can apply this setting anytime to your already published posts as well or you can change/remove it later.

Here's the example of the placed code in the Post Edit box:
blogger posts color, backgrounds, blogger tricks

How to Add a Background Image in a Blogger Post

Add the following code just at the beginning and end of your post content.

<div style="background-image: url(IMAGE-URL-HERE); background-repeat: no-repeat; ">
Your text goes here...
</div>

  • in green, you need to paste the URL address of your hosted picture (use Photobucket, Tinypic etc.)
  • the red line has to be added at the beginning of your post.
  • the blue part has to be added where your post ends.
  • "Your text here...." is where your Post content should be

Now click Publish and you are done.