First you need to go to Design--> Edit HTML--> Click CTRL+F (A Text Bar will open up)--> Input code below.
</head>
This will locate that tag in your HTML page.Directly before that tag you will want to use one of these codes below, depending on what page you want the layouts to be different on.
(These are called "Conditional" tags)
- Homepage:
<b:if cond='data:blog.url == data:blog.homepageUrl'>
- Post Pages:
<b:if cond='data:blog.pageType == "item"'>
- Static Pages:
<b:if cond='data:blog.pageType == "static_page"'>
- Specific URL:
<b:if cond='data:blog.url == "Blog Post URL"'>
Make sure to replace the blue text with the URL of the specified URL of your choosing.We need to add a style tag and the CSS rules we want to change after the line of coding your just added.
Example:
<b:if cond='data:blog.pageType == "static_page"'>
<style>
body { background:url(Image URL);}
</style>
</b:if>
I colored everything so I can break it down for you. The blue is my Conditional tags code and followed with a closing b:if tag. The orange is to designate a CSS rule followed by a closing style tag. Then the red is my CSS rule its self. You can add multiple CSS rules between the style tags. Something like the code above would change the background for the older templates. For newer templates you will need to use a different code.
Lets say I am using a older template and I want to have a different layout for the static pages then I do for the rest of my blog.
<b:if cond='data:blog.pageType == "static_page"'>
<style>
body { background:url:(http://www.blogblog.com/1kt/awesomeinc/tabs_gradient_light.png)repeat fixed center center;}
#sidebar-wrapper { display: none;}
#main-wrapper { width: 700px;}
</style>
</b:if>
What this code above would do is change my background. The sidebar and all its gadgets would be hidden. The main blog post area would be wider to fill the space for the hidden sidebar. And all this would only take place on the static pages, the rest of the blog would appear as normal.<style>
body { background:url:(http://www.blogblog.com/1kt/awesomeinc/tabs_gradient_light.png)repeat fixed center center;}
#sidebar-wrapper { display: none;}
#main-wrapper { width: 700px;}
</style>
</b:if>
The possibility's are endless for what you can do. I might suggest experimenting with it on a test blog before applying it to your main blog. If you have knowledge of CSS then you can figure it out pretty easily. On the new designer templates it might be a bit more difficult to do, but it all works the same. You just need to figure out the CSS rule to add.
13 comments:
i tried follow the steps, but the default background still appear on top, why?
I believe your referring to 小鲤鱼 blog. On this blog it has a custom design on if that looks to be from one of those blogger theme sites. The background on this blog is coming from the section called #wrap3. So maybe try using that as the CSS rule in place of the body.
Thanks Aires. It look better now...
Please, please help me out.
I used the code to have different backgrounds for different pages, and it works on one of the pages but not for other pages. Also, I can't seem to hide my main post area or change the background of the post area.
Please help me, I will post my html template code here if you require.
Many, many thanks
Well it seems to be working for me. I see a different background for the static page. If your having issues with it you should contact BloggerSentral because the code you are using looks to be from their site not mine. As for your post area you should be able to use #Blog1 {display: none;} However it seems your post area as a iframe wrapper to it. So even know you maybe able to hide the content the iframe will still appear. This template is a 3rd party template and I prefer not to deal with question relating to re designing a 3rd party template. Some of those templates are protected and it is unlawful to customize them.
This is sensory over. But I think in a good way. Just letting me know about CRTL F to open a find window/box thingy was worth the time spent on your blog.
I need to look at this when I’m not so tired.
Thanks
This is just not enough or clear enough information for a beginner blogger as I am. The test blog is a good idea that I will try and experiment with and just try to follow your instructions which are so foreign to me and intimidating. I don't understand what tweeks or widgets are.
@ Valerie
If you don't understand something then give me your blog URL and tell me exactly what your want. I will give you the code to use for what you want.
I'm trying to break the format originally intended for my post page but I just can't figure out the exact code for it to work correctly.
http://doingityourselfnyc.blogspot.com/p/do-it-yourself.html
The content of the thumbnail box (an email form) should fully appear on the page, not cropped. This goes for the other extra pages as well. Any suggestions or help would be greatly appreciated!
Its not cropping anything that is the real size of the forum even when I paste the same code to my test blog. You should be able to set up the forum to the correct size on the site you got it from.
I use a different type of contact form which you might have better luck with.
http://www.tweakmyblogger.com/2010/07/adding-email-forum.html
I've been searching a lot to find out how I can change a lil bit my homepage. Thank you very much for your help :)
Dear sir, I am not well aware about HTML codes , but i have tried the above and failed.
Sir, just i want to hid all gadgets from my static pages and to change the back ground of that static pages as "Travel" theme, meantime keeping the home page as it is as i made.
Await ur kind reply
Noufal, send me a email through the contact above with your blog URL and we can get that taken ccare of for you.
Post a Comment
Please don't post hyperlinked text within the comment box! It will not be published and you will be marked as spam.