Apply different layout/styling to static pages
Finally Blogger has come up with the much awaited static pages feature. Blogger simply refer to them as Pages. You can create up to 10 static pages, perfect for your About Me and Contact pages.
However, a Page will look just like homepage or any other page. Would it be nice if you can change the layout, making them look more like pages and less like posts? Maybe you want the sidebar or footer removed? Well good news, you can. Look at a sample Page here, compare it with the homepage, and notice the difference. The same goes to my SEO Tools, FAQs and Support pages.
Okay let’s start with the tutorial,
I. Applying the conditional styling
- Go Dashboard > Design > Edit HTML.
- Back up your template.
- Find this code in your template HTML:
<body>
-if you are using Layout templates, or<body expr:class='"loading" + data:blog.mobileClass'>
-if you are using Designer template.
- Copy the code below and paste it right after the code step 3:
<!-- Static page styling Start--> <b:if cond='data:blog.pageType == "static_page"'> <style> .blog-pager, .footer, .post-footer, .feed-links, .sidebar { display:none !important;} #main-wrapper {width: 95%; float:none; margin: 0 auto !important;} </style> </b:if> <!-- http://www.bloggersentral.com --> <!-- Static page styling End -->
For Designer template, replace code line 5 with:
.main-inner .columns {width: 100%;padding-left:0 !important;padding-right:0 !important;}
- What goes into the
<style>…</style>
tags are CSS rules. It depends on what we are trying to change and differs between templates. In the code above, we- Remove blog pager, blog footer, post footer, feed links and sidebar. This is done in code line 4.
- Widen the post area to fill up the spaces vacated by the sidebars. This is done in code line 5. If you want to do this too, find out what’s your header’s or header-wrapper’s width and apply it here.
II. Identifying and adding your own elements to the code
Your elements’ Ids and classes maybe different from the ones given in the code above. You can find yours by going through your template code. To get an idea what to look for, here’s a sample code snippet, taken from Blogger Sentral’s template:
<div class='side-wrapper'> <b:section class='sidebar' id='sidebar2' preferred='yes'> <b:widget id='HTML2' locked='false' title='' type='HTML'/> <b:widget id='HTML4' locked='false' title='Popular Posts' type='HTML'/> <b:widget id='Label1' locked='false' title='Labels' type='Label'/> </b:section> </div>
As you can see an element, be it a division, a section or a widget is assigned an ID and/or a class. To remove it from the Page, simply add the ID or class to the selector list in code line 4 in step 4. For an ID you need to add “#” prefix and for a class, add “.” as prefix.
Update: There is an easier method of finding Blogger widget and section Id’s.
For example, if you want to remove the “Popular Posts” widget, all you have to do is add #HTML4
to the selector list; To remove the the whole lower left sidebar (which holds the Popular Posts and Labels widgets), add #sidebar2
to the list.
III. Styling pages individually
(added Oct. 2010)
Using the static_page conditional tag as explained above will apply the styling on all static pages. Now what if you want to style only one page. Let’s say for instance you want to change the background color of your About Me page to pale green, while leaving all other pages as they are. Can you do that?
Yes you can, and it’s easier than you might think.
- Go to Postings > Edit Pages and select the About Me page.
- Switch to HTML mode.
- Insert you CSS code on top of the page content, like so:
<style type="text/css"> .content-inner {background-color: palegreen;} </style> YOUR STATIC PAGE CONTENT HERE
- Yes, you don’t need any conditional tag. This code only resides inside that one page, therefore it won’t affect other pages.
Enjoy!
Subscribe to our blog via email or RSS to receive free future updates.
Update 26 Oct 2010
Add Styling Pages Individually.
351 comments to "Apply different layout/styling to static pages"
«Oldest ‹Older 1 – 200 of 351 Newer› Newest»i use static page in http://beranitahu.blogspot.com/ but, why the script that i wrote in that page doesn't appear in my blogger page? but it just appear in preview page only?
Thanks for the explanation, I'll try it!
@neno The title says *static page* ...i.e. the code is for the extra (up to 10) pages you can add to your blog-one (page with posts)
I have successfully modified most of the static page layout using your instructions (see http://dreamdoggardencoach.blogspot.com/p/test-page-1.html), but I cannot seem to figure out how to shift the rounded corners and the line that runs vertically through the post to the far right. Any ideas?
@Jenn
The rounded corners and vertical line are background images. They don't expand following your width change. You'll have to remove the images (and of course you will lose the rounded corners effect).
Find this:
#main-wrap1 {
width:485px;
float:left;
background:#446666 url("http://www1.blogblog.com/rounders4/corners_main_bot.gif") no-repeat left bottom;
margin:15px 0 0;
padding:0 0 10px;
color:#cceedd;
font-size:97%;
line-height:1.5em;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}
#main-wrap2 {
float:left;
width:100%;
background:url("http://www1.blogblog.com/rounders4/corners_main_top.gif") no-repeat left top;
padding:10px 0 0;
}
#main {
background:url("http://www.blogblog.com/rounders4/rails_main.gif") repeat-y left;
padding:0;
width:485px;
}
just delete all background codes in main and main-wrap2. For main-wrap1 trim the code to background:#446666; to keep background color.
Just want you to know that your tutorial had helped me a lot in improving the looks of my blogger site. this "styling the static page" would be my next challenge. I'll come back for this next time.
As a thank you, I'm now your follower and I've tweeted about this. great job and all the best :)
Gleenn @ Creative Fashion
@gleenn
I'm glad you find this blog useful. Thanks for following and tweeting.
Thank you, you got me part of the way there! I've been able to remove most of the features I didn't want but cannot figure out why my text on my static page is truncating. Anyone out there who can suggest a solution would be sincerely loved!!!!!
http://www.loveislovesydney.com/p/about-me_14.html
@Gabrielle Shone
Your template uses (an obsolete) auto readmore code. This code does not take into account the new (static) page feature.
To correct your code, read Blogger Auto Read more with thumbnail.
You want to copy the code in step 8 and paste it to replace the corresponding code in your template. I'm not 100% sure that this code will work in your template, because maybe there is a slight difference. But don't worry, it's fixable.
Pls backup your template first (Layout>Edit HTML, click Expand widget Templates, copy all code and paste in Notepad).
You are AWESOME!!!!! Thanx!!!!!
@Lori Howden-Weaver
You're welcome!!
Can you tell me how to remove the title on the static page post, but still have it show up in the pages tab?
@About the FNJ
Just add this code right before [/style] tag in step 3:
.post h3 {display:none;}
How can I get the font size and color of the static pages on my vertical bar? Thank you!!!
@Ana
To change font size and color in the sidebar, go to Layout>Edit HTML and add these codes right before ]]> line:
1. Sidebar content
.sidebar .widget-content {color: #FF0066;font-size:12px;}
2. Sidebar title
.sidebar h2 {color: #FF0066;font-size:12px;}
change the values as desired.
Thank you so much for this, it worked well on my static pages. I just wonder though how to remove the link within for my static pages. I hope to find the answer somewhere on your tutorials here. Thanks a lot
how do I get that /p/ in the url? I didn't get that part. please help. And how do I remove the link within for the static pages?
Can I change the style on one static page, but not on others?
Your instructions are incredibly helpful! I wonder if you can help me with another question. I have a customized 3-column minima grid (www.FoodNewsJournal.com). Is it possible to customize ONE static page (but not the others) so that it only the left sidebar disappears, but not the right? (so the layout would have one wide column on left, but maintain right sidebar). Thanks!
@gleenn
I see you applied my old static page hack to your blog.
This post is for the new (standalone) Pages. You can create Pages in Dashboard>Edit Posts>Edit Pages. All standalone Pages have /p/ in their link.
If you want to switch to standalone Pages, you will no longer need the the old hack.
"how do I remove the link within for the static pages?" -I'm sorry but I don't understand what you mean, what link?
@About the FNJ
To customize just one page you need to replace static page conditional tag in step 3 line 2 with blog url conditional tag. Read Display widget on specific pages in Blogger for the syntax, what you want is item 3.f.
Then add this code to replace the content in line 4 and 5:
#newsidebar-wrapper {display:none;}
#main-wrapper {width:730px;}
Good luck
Hi Green,
Yeah, I've been following your tutorials all the while starting from adding the navigation bar on top of my home page. Taking it step by step, your tutorial is really easy to follow. [Thanks a lot for that] :)
I'm using linkin within widget for all my posts so that every posts displays related topic at the bottom which says "You might also like". I don't need it for my static pages but I couldn't remove it. Is it possible to remove those link within photos at the bottom of my static pages?
oh, btw, I added you to my blogroll at
Creative Fashion as a thank you :)
@gleenn
Oh...that LinkWithin. I was reading "link within" as in "link inside" :)
Just add this before {display:none;}:
#lws_0
that should do it.
Thanks for the link up
hi Green,
I just did, pasted #lws before {display: none !important} in the code for static hack but it didn't work. Which {display: none} do you refer?
@gleenn
Your existing static hack styling:
.post-header-line-1, .date-header, .post-footer, #comments, #blog-pager, .post-feeds, .sidebar { display:none !important; }
#main-wrapper {width: 968px; }
#main {width: 900px; margin: 0 auto;}
add #lws_0, like this,
#lws_0, .post-header-line-1, .date-header, .post-footer, #comments, #blog-pager, .post-feeds, .sidebar { display:none !important; }
#main-wrapper {width: 968px; }
#main {width: 900px; margin: 0 auto;}
Wow Green, you're a genious! how neat, I got everything perfect now. Thanks a lot! :)
Fantastic. You give incredibly clear directions that I haven't been able to find anywhere else, thank-you!
@gleenn
@About the FNJ
My pleasure
I am using a graphic header and have successfully moved the text header from the static pages. I want my sidebar to show on the static pages and to stay consistent with my blog, but I can't seem to figure out the CSS code to do that. Help?
Also, my sidebar is now at the bottom of the static page, to the left. :/
Nevermind, I got it. :) Sorry about spamming your comments! Thank you for this tutorial, it is amazing and helped so much!
@Heather
Okay, glad it worked out for you.
Do come back and feel free to ask questions
I've styled one static page as you instructed in Comment #20 (which worked perfectly, thank-you!) and now I'm trying to remove the static page titles as you instructed in Comment #12. However, since I've customized one static page, I've only been able to remove the page header on that particular page, and not the others. Any idea how I would remove the titles on all static post pages (but not the tabs), including those which have been customized and those which haven't? Thank-you!
@About the FNJ
Just add another one (the code in step 3) with only this inside style tags:
.post h3 {display:none;}
Awesome, THANK-you!
Hi there,
I don't know where to look for the body tag as you said. I have tried different ways to add your code in order to have my static pages display in full, but it doesn't work. Can you help me please?
You can see my static page here: http://alexis-sclipiridecristal.blogspot.com/p/clame.html
Thanks again!
@Alexis Design
To find body tag:
1. Go Dashboard > Layout > Edit HTML.
2. Press Ctrl+F to activate search function.
3. Type <body inside the search box, and hit Enter.
I really love this site, your tutorials are so helpful. I have a question about static pages though
Could you please check this link out http://www.curlynikki.com/search/label/Celebrity%20Interviews
The static page "celebrities" features all posts that have labels with the word celebrity in it. How does one do that? I'd like to have a static page that says "HOTD" and I want all my posts with the label hair to be on that page so that people can find all those posts under the one page.
@Fe
That is not a static page. It's a labels page.
Just use this url in your navigation tab:
http://YOURBLOGNAME.blogspot.com/search/label/YOURLABEL
wow! I'm a complete and utter neophyte and your instructions were easy to follow. Thank you so much!
Will there be other things we can do with these pages? add a table or stuff like that?
@f r i l l
You're welcome.
A Page is just like a regular post except it is static. You czn add content to it as you would a regular post -be it texts, images, tables etc.
Thanks for the info. I have looked at this fix and it is great. I only have one problem. There are certain pages that I want to keep the layout of the homepage and only one page where I do not want any layout. Is there a way to do this with just one of the pages?
@Thomas Ryan Rhodes
See reply #20, first paragraph.
I'm using a designer templated installed from draft.blogger.com It does not have the #main-wrapper or anything.
How can i modify width of my page there?
my site is http://bookreviews.bookrack.in
@Booklover
Replace your #main-wrapper line (line 5) with this:
.main-inner .columns {padding-right:0;}
Subscribe to our feed to stay updated.
Worked! Your awesome !
@Booklover
I'm glad to hear that :)
Hey Greenie...
I want to install a Nabble forum as a static page but I cant seem to find the [body] tag anywhere in order to insert the above code. I too am using a template installed from draft.blogger. Also I like the forum to have a 75% width and I would like to delete the tweetmeme button from this page and also from the all posts page but I am not sure whether to write the id =#t118664etc or the class = tweetmemebutton? I am also assuming that the [b if cond = data:blog.url] line is followed by the address of the static page to which I want to apply this hack?
@Greenlava,
I'm having the same (or at least similar) problem as @Booklover. I attempted your suggested fix but it doesn't seem to be working for me. This is my first attempt at HTML anything, so I'm sure there are any number of ways I could be messing up. Any help would be much appreciated! Thank you!!
imwithryan.blogspot.com
@Ryan
Don't forget to include "!important":
.main-inner .columns {padding-right:0 !important;}
woohoo! Thanks! :)
@Greenlava
My apologies if I'm being a pest...I very much appreciate the help!! That worked in widening the posting area, however now on the static pages I get a scroll bar at the bottom as though there is more off to the right on the page, but there isn't. Is this something that is fixable? Thanks again!
imwithryan.blogspot.com
@Ryan
Try adding .main-inner .fauxcolumn-right-outer and .main-inner .column-right-outer in line 4 (in front of { display:none !important;})
I'm not 100% sure that will work because I can't test it from here. Any try it out and come back here with the result.
@Greenlava
Worked! :D Thank you very much for your help!!
Dear Greenlava ... while everything looks pretty straightforward I am still having trouble placing the code in my draft.blogger template... I cant seem to find a body tag anywhere!!! I read somewhere that I can add this code after b:template-skin tag just before the head tag ... but this doesn't work either!!! Any suggestions?
@Ryan
You're welcome
@IoanG
Look for [/head] tag, body tag is right under it. BTW if you wan to, you can put the code right under [/head](above the body tag), it should work just as well.
Hi.. thanks for the nice tutorial.. I want to remove timestamp and author name from static pages. Please show me how to do that.
Secondly, I am using intense debate comments on my blog. I don't want the comments to appear on some of the static pages. How can I do that ?
@Anshul Dixit
I don't think timestamp and author name are displayed on static pages.
To remove comments, simply set it so in post options before publishing the page.
Thank you for the tutorial. I have installed the Nabble forum I was wondering how do I remove the accents from the sidebar when the widgets are removed and the post is stretched. Is there a way to change the value of the accent to white only the static pages?
In the Blogger designer you can change the accent colour but this makes the accent completely disappear and not shown on the main post pages to separate the sidebar and posts.
I do want the accent just not on the static pages where the sidebar is removed.
Currently this is only done in my demo site. When its works correctly I will implement in my real domain.
Thank you
Daniel James
http://webexploits.blogspot.com
@Daniel.James
Yes you can apply the color change to only the static pages, afterall that's what this tutorial is all about.
Now if only I have your demo site url...
(you can email me the url if you don't want to post it here)
Hello thanks for the quick reply. The address is http://webexploits.blogspot.com
if you look on the privacy policy page you can see the Separator Line Colour is #e8e8e8. I do want it to appear on the home page and the post pages.
I have just purchased the domain webexploits.co.uk
Blogger should be redirected to .co.uk soon.
One other question, how can I hide the footer in the static pages. I have seen a few tutorials but they dont work because they only remove the widget title.
You are welcome to contact me daniel.james.webexploits@live.com
Thank you
Daniel James
I like the way my static pages look at present, but I've added Link Within to my blog (Home) page, and I've got some fixes to do to the static pages, and the minute I revise them, I know Link Within is going to show up on them. How do I just pop some code into my html to stop that from happening?
Thx so much!!
@Daniel.James
1. Separator line:
Go to Design > Edit HTML and find this code:
.fauxcolumn-right-outer .fauxcolumn-inner {
border-left: 1px solid #e8e8e8;
}
replace border-left: 1px solid #e8e8e8; with border-left: none;
2. Footer
Your footer id is footer-3. So just add #footer-3 in code line 4.
@Laurie Grassi
See reply #23
Expert advice thank you. Do you think I should remove the footer profile and privacy policy widgets. Would the homepage look better without them, considering I have the static pages for them.
Also the home page would load a little faster. I could add the privacy policy and profile links in the copyright footer section.
How does that sound?
Thank you
Anyone is welcome to contact me daniel.james.webexploits@live.com
so we can exchange ideas and give constructive feedback.
Daniel James of http://www.webexploits.co.uk/
@Daniel.James
I personally would prefer the second option (links in the footer).
Hello again, I have made significant improvements like removing the navbar widget completely. This has removed the annoying space above the header which I think looks professional.
How can I remove the padding below the footer. I have used firebug in Firefox to see if I could identify the html. Having no success with this one.
I have noticed that most websites have very little or no margin top and bottom which saves and looks more professional.
@Daniel.James
To remove the space, go to Design > Template Designer > Advanced > Add CSS and add this code:
body {padding-bottom: 0;}
.content-outer {-moz-box-shadow: none;-webkit-box-shadow: none;-goog-ms-box-shadow: none;box-shadow: none;}
Absolutely fantastic is this your professional job. I have learnt so must about web design and html, thank you.
Hi Greenlava.
I am trying to remove the sidebars and post area from this page.
I have really tried hard to follow the instructions without success.
The page I am trying to edit is:
http://www.nyskiblog.com/p/harvey-road-forum.html
Could you look at it?
@Harvey44
Oh you fixed it...the forum looks great.
Thanks Greenlava. It wasn't easy - for me!
It seems like there are other issues, of course!
I have that forum embedded in an HTML widget. Not sure but I don't THINK I can get the window to scroll or expand past a certain length. I won't know for sure until after I get a certain number of posts in the forum, but I'd rather get the bugs worked out before I go live with it.
I "THINK" this is a problem because when I click on the Nabble (forum provider) help links, if I get info that is too long in the window, it is cut off with no option to scroll.
Any work around?
@Harvey44
Try adding this code before or after the Nabble javascript code:
[style]
#nabbleiframe {overflow:auto:}
[/style]
replace [ and ] with < and >
Disaster.
I tried what you recommended. It delete the code from my widget. Because I have automatic forwarding to my blogger URL I can't get it back.
I tried to reinstall from the template and it doesn't work. You can't really back up widget content I guess.
Ideas?
Delete code from your widget? I don't get it.
You installed Nabble inside a Page, by adding (similar to)this code in post editor right?
[a id="nabblelink" href="http://myforum.936189.n3.nabble.com/"]myforum[/a]
[script src="http://n3.nabble.com/embed/f936189"][/script]
Adding the code I've given in reply#75 will turn the whole code into this:
[a id="nabblelink" href="http://myforum.936189.n3.nabble.com/"]myforum[/a]
[script src="http://n3.nabble.com/embed/f936189"][/script]
[style]
#nabbleiframe {overflow:auto:}
[/style]
Thanks for the help and so sorry for the panic.
With your code I was able to get back to nabble and regenerate the original code, not sure why - as the redirect was still in place.
I've gone back to the original code. It looked like when I used your code there was space for a scroll bar but no bar. Probably because i don't have enough content to scroll.
When I get brave I'll try again.
Thanks for all your help, and sorry for my boneheaded move.
@Harvey44
Oops...
#nabbleiframe {background-color:limegreen;overflow:scroll;}
should be
#nabbleiframe {overflow:auto;}
instead
About reply #20
Could you show an example of
how it should look? :D
Nevermind! I fixed it! ;)
http://aclem-productions.blogspot.com/
Greenlava,
I figured out that I should remove the limegreen ;).
Thanks for the update. It works exactly as planned.
I'm thinking about moving the nabble forum to a custom (sub)domain.
forum.nyskiblog.com
A few issues and I'm not sure all relate to this post so hope it's ok.
If I set up a subdomain, it's like a separate site functionally?
Can I set it up so that I have only one login for the domain and the subdomain?
How do I make the forum hosted on the new subdomain look exactly as it does now? Mimicking the main site?
Is there SEO value to hosting this on my subdomain vs with nabble?
Do I have to worry about duplicate content issues?
@Harvey44
Ahh...subdomain. I have zero knowledge on this subject, so I guess you have to ask somewhere else. Try posting your question in Blogger Help Forum.
Just what I was looking for! Thank you!!!
@Janneke Smit
Looks good
Sorry, Greenlava, but I am completely stuck. I tried all your suggestions:
I've added the code after [/head]
- after [body]
- using a specific url (http://panoptifier.blogspot.com/p/post-archive.html, with
#newsidebar-wrapper {display:none;}
#main-wrapper {width:900px;}
- using the static_page condition
- replacing line 5 with
.main-inner .columns {padding-right:0;)
:(
I wonder if it is the template I am using...
When I preview a static page, or the specified archive page after any of the attempts above - it doesn't look any different.
Please be so good as to advise me!
@BioGal
Do you have the code on right now? I don't see it anywhere.
Sorry, I took it off as it wasn't doing anything! I have put it back between [/head] and [body]
Thank you for all your help.
Okay, so this is SUPER WEIRD - I spent HOURS yesterday trying different versions of the code in different places and NOTHING worked.
Now, I've randomly tried a password protect function on a page and it made itself without sidebars, etc.
Then I tried the other static pages - they are sidebar-less too!
Greenlava, did you fix this remotely for me? If so, THANK YOU!
Maybe Blogger doesn't allow too many changes in a day and freaks out...
Anyway, THANK YOU!
@BioGal
No, telekinesis is a bit out of my league :)
Maybe you misplaced a dot or something.
Greenlava
I used your steps in the blog above to take away my static page's sidebars and widen the post field.
All worked except I can't seem to widen the post field. You said to find my header width and apply it on line 5. I can't find my header width anywhere HELP! Also, where do I apply it in line 5?
I'm a mess right now! Please help!
@ZMoney
Replace the code in line 5 with this:
#main-wrap1, #main, .main .Blog {width:740px;}
A word about Rounders template. This template is a little tricky to work with because it uses background images to simulate rounded corners. Background images don't expand with your column.
i could make it partially.
i want to remove a widget, whose details are
sectionId=footer-3 widgetId=HTML2
but i dont know where to add this.
i use template designer template.
(http://scientisttoday.blogspot.com/p/contact.html)
if you visit this page, i can say that the code corresponds to recommended books code.
1. what i should do to remove that code from static pages.
2. you can see a scroll bar in that page. i dont want that, how to do.
@spk
1. Your present code:
.blog-pager, .footer, .post-footer,
.feed-links, .sidebar, .footer3 { display:none ! important;}
.main-inner .columns {width: 100%;padding-left:0 !important;padding-right:0 !important;}
change it to:
.blog-pager, .footer, .post-footer, .feed-links, .sidebar, .footer3, #HTML2 { display:none !important;}
.main-inner .columns {width: 100%;padding-left:0 !important;padding-right:0 !important;}
2. To remove the scroll bar, you need to increase the Google spreadsheet iframe height from 659 to maybe 700.
hello..hello :)
im having trouble applying different backgrounds to the top, left, right n bottom of my blog :(
i cant figure out the scrit to do that ...help everyone! :(
mayday! n thanks in advance :)
@BenWicked
You can only apply one background to a HTML element. To apply more than one you have to add elements to wrap your blog content. For example:
[body]
[div id="leftbg"]
[div id="rightbg"]
[div id="bottombg"]
YOUR EXISTING BLOG CONTENT
[/div]
[/div]
[/div]
[/body]
Then in CSS you apply a background to each div, specifying different background position to each one.
Refer to Using image as background to learn about background image positioning.
Found the article really useful but still having problems. I do not want the header and the about me on my static page, but I cannot figure out how to remove them?
http://amusingreflections.blogspot.com
@Brunetta
The Id for your header and About Me are Header1 and Profile1 respectively, therefore your step 4 line 4 code is this:
.blog-pager, .footer, .post-footer, .feed-links, .sidebar, #Profile1, #Header1 { display:none !important;}
Thank you very much, it is working now! I have found this site to be very informative in the 24 hours I have looked at it!
@Brunetta
You're welcome.
Do use the Post Index tab and search box on the menu bar to find what you need.
Hi Greenlava! I found this article really helpful and easy to follow, but the suggested code doesn't appear to change anything on my blog?! Address: http://zoeyule.blogspot.com/ and the page I'm trying to make different is http://zoeyule.blogspot.com/p/photography.html. I would like the sidebar to be narrower and the main wrapper wider to allow the slideshow (also thanks to your helpful instructions) to be larger. Any suggestions? I'm very grateful for your expertise and advice!
@Zoë Yule
I only see the comments (code line 1, 8 and 9) in your source code, which only means one thing -there is something wrong with the conditional tag in line 2.
Just reapply the code and see what happens.
Thanks Greenlava, I started over and adjusted the parameters one by one until I got to where I wanted! Thanks for your help!
Excellent post, thank you!
@Anonymous
You're welcome. Come back any time.
Your code works great..thanks..I have a magazine style template but I'm having problems displaying the post the way it would look on an individual post page. I am able to take all the stuff out with your code, but I need to somehow put div class='single' id='post' into the code so that the post won't be boxed up and limited to only 300x200 box like it is on my magazine style home page. Any way to add one element to a static page in the same code chunk I used to take stuff out?
I just sent you in a question and I sorted it out...I applied the same treatment to .post as you did for main-wrapper for the static page to make the post be a normal size.....it seems like it is working
how about this template? http://btemplates.com/2009/blogger-template-zengard/ i try and not working
Hi. I have really enjoyed your site and have learned much...but being a beginner...I am having trouble removing the two separator lines from my static pages. Could you help me out. My site is:
www.shadowedstar.net
Thank you!!
@MTA
This conditional tag application should work on all templates. It is just a matter of finding your elements' id or class and use it in code line 4 and 5.
Anyway, what is that you are trying to achieve? Tell me and I'll find the ids/classes for you.
@Colleen
Add this snippet right before the closing [/style] tag:
.fauxcolumn-left-outer .fauxcolumn-inner, .fauxcolumn-right-outer .fauxcolumn-inner {border:none;}
the template is automaticly do the read more. i like that but in page i want the full page. did not want to automatic readmore. how to do that?
@MTA
This post: Blogger Auto Read more with thumbnail explains how to apply auto readmore, similar to what you have in your blog.
To remove the read more, just remove the codes in your blog that are similar to the codes presented in the tutorial.
im sory for disturbing you but how to remove auto readmore with thumbnail to blogger pages only. not all blog? im totally blur. can you help me? please..
i have solve the problems. i search from google. anyway thanks a lot greenlava for help..
Hi, Greenlava..
I wanted to make a page special for blog list or recent post,
is that posible to do it?
what I supposed to do?
please help me...
tq
@Meys
1. Go to Design > Page Elements.
2. Add the gadgets
3. Reposition them under Blog Posts gadget box
4. Apply this tutorial to remove sidebar and blog post, and widen the main column area.
This tutorial is great! I was able to apply a lot of the information provided here to my site. Thanks a ton!
Though I do need HELP with this:
I am trying to widen the post area to fill up the spaces vacated by the sidebars i removed. I found my header-wrapper’s width which is this:
#header-wrapper {
margin: 7px 0px 7px 0px;
padding: 4px;
width: 970px;
background: $headerbgColor;
border: 1px solid $headerBorderColor;
}
and I adjusted line 5 of the code like this:
#main-wrapper {width: 970px; float:none; margin: 0 auto !important;}
But it's not working and my site looks this way with the empty space on the right:
http://www.sehnsuchtisawave.com/p/vids.html :/
Can anyone help, it'd be greatly appreciated!
@Mia
You have an inner container (named main) with 476px width. Undo that width by adding:
#main {width:auto;}
after line 5.
yes... its working! tq..Green Lava
but I still have problem here, pls check my blog http://akademikata.blogspot.com
pls help me how to hide the blog list widget in the footer (bloglist 2)bcoz I only want this widget appeare in my "Serba-Serbi" page...
@Meys
Add this snippet:
[b:if cond='data:blog.url == "http://akademikata.blogspot.com/p/serba-serbi.html"']
#BlogList2 {display:block;}
[b:else/]
#BlogList2 {display:none;}
[/b:if]
:) Ahhh, thanks a ton! Greenlava, you are as awesome as your screen name :D
I am using a magazine style template.I would also like to style my page but I cannot get the static pages(technique tuesday) to show the full post.Can you tell me please what I can change in the code.If I change the code in the mini post and hentry it also changes the main blog post and not just the static pages.
I would very much appreciate any help you can give me.My blog is www.sweetgummytrees.blogspot.com
Regards
jncarriere
@Jeannette
The "read more" on your static page is due to an old read more script (that's made obsolete by the introduction of pages).
I think it's best for you to contact the template maker for the fix.
I tried looking in your template, but can't find the script.
You're Awesome!
Thanks for your help. Very clear directions. It did exactly what I wanted!
I want to customize my PageList and i try to use this tutorial ( i use layout templates)
http://www.bloggersentral.com/2010/03/how-to-align-pagespagelist-gadget.html
but I have a problem with the static page.
I past this code after "body"
.blog-pager, .footer, .post-footer, .feed-links, .sidebar, #PageList{ display:none !important;}
#main-wrapper {width: 95%; float:none; margin: 0 auto !important;}
and add the pagelist code before the line ]]>
but it doesn't work :(
can you help me please?! :)
Greenlava...im stucked :(
i cant remove the header.
Im using template designer picture window.
I upload my header..i found out my ID:Header1
So..i followed ur instruction, paste #Header1
But not works.
Then i view my page source. Found another code ID:Header1_headerimg
Once again, I paste #Header1_headerimg
But then no luck...not works again. May i know what did i do wrong? Please help
@Nivia
The pagelist alignment tutorial and this tutorial do two different things. Could you tell me what exactly you are trying to achieve?
@SAM
If you give me your blog url, I could take a peek at your source code (to find the culprit).
omg i'm so stupid x_X
I misunderstood it.
what i wanted to do was this tutorial
http://www.bloggersentral.com/2010/02/highlighting-current-page-tab-in.html
and it works :)
Sorry for the miss understanding and my bad english ^^''
@Nivia
I'm glad you've got it worked out :)
I'm just stuck, I guess. I tried doing all the above and I still have sidebars...even bigger than before on all my pages...can you help
magnoliavolleyball.blogspot.com
Greenlava...
here's my url.
http://durian13.blogspot.com/
2nd question:
is the hack above able to hide/add some widget in different static page?
As im planning to use jquery image slider in my static pages. And different image slider has different images in different statis pages.
But once i add javascript in page element, the jquery image slider show up in every statis page with same images.
So, i plan to make image slider A for statis page A, img slider B for statis page B, etc.
I hope u get my meaning. thanks. looking forward ur reply. thanks again.
@MagnoliaBigDog
What is the problem again?...umm have you changed template?
@Sam
1. #Header1 {display:none !important;} should work just fine.
2. Follow this tutorial to display widget on specific URL.
Hi! can you please help me? I have a problem with my new blog. I placed the "read more" feature in the post but now the static pages also has the read more. I wanted to remove it.. I tried all the tutorials I can find but I keep getting an error.. either a closing tag div or b:if.. I close with a tag but still not working.. I am left to no option but going back to the old saved template.
@Tes
Go to Design > Edit HTML and click the "Revert widget templates to default" link located below the code box.
That should undo whatever changes you did (to the Blog widget).
Thanks! But I still want to have the read more feature for my posts and removed from my static pages. Can you help?
@Tes
Try this: Blogger Auto Read more with thumbnail
Thank you very much! You are an angel! :) That solved my problem.. yehey! And I like the thumbnail thing.. :)
@Tes
My pleasure.
Stay updated by subscribing to Blogger Sentral and following on Twitter.
Greenlava,
I looked at a number of posts on how to do this and yours is the first one that worked for me . . . thanks a bunch . . .
I am using a gallery style template.I would also like to style my page but I cannot get the static pages to show the full post.Can you tell me please what I can change in the code please.
I really appreciate your kind help.
http://panduramagallery.blogspot.com/p/contact-us.html
terima kasih, daun keladi~
@Pandurama Art Gallery
Please refer to reply #8.
Your gallery uses codes similar to the auto read more. You have to locate the codes in your template and add in the static page conditional tag.
Thanks for the great tutorials, you're da bomb! I have it working for the most part. I'm still getting a line down the middle of the pages. I read post 4 thinking that was it, but have no #main in my template file.
http://amllpnonprofit.blogspot.com/p/nonprofit-team.html
@Rob
Welcome to Blogger Sentral.
For the line in the middle refer to reply #111
@Greenlava
You are truly the best. Sorry for asking again. I did look, I guess I just didn't put it together. Thanks!
can i use this hack to upply to all post pages but not in homepage ?
@على باب الله
You can apply this to any page or pages. Just replace the conditional tag. Refer to Targeting specific pages with conditional tag for a list of available conditional tags.
Hi greenlava,
Many thanks to you.
I followed what you have showed here, & it worked!
Thanks again.
Dankeschön. (:
hi,
following your guidance i was able to create different layout on static pages
however i could not remove Gadget of HTML/JavaScript on my other pages (Privacy, etc..)
how do i show Gadget of HTML/JavaScript only my main page while removing it on other pages (Privacy, etc..)
tq
@Anonymous
You have to find the widget id and add it to code line 4 (in front of {display:none;})
Refer to this tutorial on how to find the id: Finding Blogger widget and section Id’s
Thanks! perfect!
Greenlava, I had previously been searching the web for almost two months for information on how to adjust the layout of static pages to make them look different from my home page and was getting despondent because I couldn't find anything until now. I must just say thank you SO much for all your awesome help on here.
If I may, could I ask for some further assistance, however. The problem is that I have used the code to make my page look more like a web page and to add a different background to my first static page, but I now wish to change the background of the post area too and also add one or to gadgets to this static page alone. Is this possible?
Any response would be greatly appreciated!
Many thanks :D
@Michael
I've updated this tutorial. See III. Styling pages individually.
To add gadgets to a single page, you have to use a different conditional tag. Refer to Targeting specific pages with conditional tag for details.
In your sample page, you have the top Blogger navigation bar as a mouse-over drop-down. I am trying to find the article where you made this possible, as I hate that the bar can chop up a design, but like to have access to the links it provides. Any help you can offer would be wonderful. Thanks!
@Shay Moore
Here is the tutorial: Navbar peekaboo: Hide and make it appear on hover
thank you so much..
but i prefer blogazine :)
Hi...Green,
I followed all your tutorials here and it worked wonderful on my blog after trillion trials and errors!
Thanks for sharing. Sharing is caring... :)
Hugs, e-na.
@Muhammad Taqi
@Anonymous
You're welcome guys. Do come back :)
Hi Greenlava,
Thanks for this post. I'm new to HTML and CSS and have been figuring out piece by piece how to make my blog look the way I'd like. This tutorial has been very helpful.
I'm building a static page, which I'm hoping will have a very simple and clean aesthetic. I've inserted conditional styling into my main template in order to hide my sidebar widgets, and within blogger's "Edit Post" function I've also applied ".post h3 {display: none !important;}" to hide the page (post) title and date stamp.
What I can't figure out is how to eliminate (or otherwise make use of) the white space that now exists between my static page's header and the text below -- space that I assume is left over from where the date stamp and page title would normally go. I've found information elsewhere on how to eliminate post titles from an entire blog, thereby eliminating page titles also, but I don't want to do that!
Do you have any suggestions for how to eliminate the great swath of white space between my header and regular text? The static page in question is http://chrysoprase.blogspot.com/p/footnotes-superscript.html.
Thanks so much!
@surefire
Half of the white space is due to three line breaks [br/] in the page itself. One break after the first style tag and the other two after the second style tag.
You need to remove them.
This worked wonderfully!!! Thank you!
Hi thanks for your help. I have customised my static page with your help, one other thing I would like is to change the skin (not the background color) on the static page, different from the blog home page. I am using Simple Design template.
Again thanks but in advance.
Thank you, thank you, THANK YOU!!!! :) It worked like a charm right away!
Is it possible to change the link of my static page and add the link of any one of my labels,so that when someone clicks on my stand alone page he/she will be directed to the link of the label
plz reply
to this email
atif.slayer@gmail.com
@BlEeD$fOr^mE*dEmOn
You can find the answer here:Adding non-pages links to pages/PageList gadget
Hi Greenlava,
I'm back;).
I can not remove the white space on the right side.
http://www.tweakyourdevice.com/p/forum.html
Thx you in advance for your help.
.title, .datebox, .blog-pager, .footer, .post-footer, .feed-links, .sidebar { display:none !important;}
#main-wrapper {width: 95%; float:none; margin: 0 auto !important;}
@Antoine
Add this:
#content {width:95%;}
Thanks dude
plz visit m blog i'v just created it a week ago.It's my first ever blog.
http://worldofcstrike.blogspot.com/
tell me how it is
any expert tips from u would be helpfull
thanks in advance
Thx again Greenlava !
But, I changed my template, and I can not do the trick ( I have the bar on the right side, and the title: ( ). Would you have an idea?
http://www.tweakyourdevice.com/p/forum.html
"
.h1, .footer, .new-footer, .post-footer, .feed-links, .sidebar { display:none !important;},
#clearfix {width: 95%; float:none; margin: 0 auto !important;}
"
@Antoine
This time:
#colLeft {width:900px;}
#colRight {display:none;}
Thx you so much Greenlava ;)
I tried your code in order to break the format originally intended for my post page but it still isn't working.
With my "http://doingityourselfnyc.blogspot.com/p/do-it-yourself.html" page, I want the content of the thumbnail box (an email form) to fully appear on the page, not cropped. This goes for my other pages as well. Any help or suggestions are appreciated!
@Doing It Yourself
Your layout is controlled by one (or combination) of the few JQuery scripts that are present in the header of your template. The only way you can change it is by altering the scripts.
Your blog has been extremely helpful! I have used your tutorial on modifying static pages and have updated the homepage of a blog I am working on (http://bhamzumbamamis.blogspot.com/). I am now trying to add 3 horizontal images, that will be linked to other static pages when clicked, using an unordered list but I'm not sure how to go about inserting the code and the images. The style for the ul is below:
homepage ul{
margin: 0 auto;
padding: 0;
}
homepage ul.horizontal_list li{
text-align: left;
float: left;
list-style: none;
padding: 3px 10px 3px 10px;
margin: 5px;
border: 1px solid #CCC;
}
Any help you can offer would be greatly appreciated!
Thanks!
@DaKara
Read the answer in my Facebook discussion board.
@Jenna
I answered this before, here it is
I'm having trouble and am wondering if you can help. I added the code and saved the changes, however, the static pages haven't changed. Everything is exactly the same as it was before the code was entered??
http://www.familyreviews.net/p/coupons_12.html
Thanks in advance for your help!
@Review Mom
This is what you have in the style tag right now:
.blog-pager, .footer, .post-footer, .feed-links, .sidebar { display:none !important;}
#main-wrapper {width: 95%; float:none; margin: 0 auto !important;}
The element names in your template are different then what are given in the tutorial. Use this one instead:
.blog-pager, .footer, .post-footer, .feed-links, #sidebar, .postmeta2 { display:none !important;}
#contentleft, .postarea, .date {width: 100%; float:none; margin: 0 auto !important;background:white;}
thanks for making easy tutorial here, greenlava. I've used it for my blog. but the page doesn't show full. it still has empty space from the sidebar I've been managed to not showed. how to make it full?
check it here: http://lovelygloriouspainful.blogspot.com/p/support-test.html
thanks for your help :)
Hi Greenlava.. I am using your codes to make static pages in my blog. This is my page address:
http://beyondmindeyesstudio.blogspot.com/p/contact.html
The auto read more (originally from this template) for this page is gone. It is ok because we dont need it in pages right? But it still leave the thumbnail and summary. The sidebars also are not removed.I don't know where to change the codes.
Thank you.
@Nduk Pingkan
Replace your styling code with this one:
.sidebar { display:none !important;}
#main-wrapper {float:none; margin: 0 auto !important;}
#main {width: 95%;}
perfect! thank you! :)
Thank you so much for this!! It's the only thing that has worked. However i cant get rid of the separator line :( any tips on that??
@MariB
I have answered this before, in reply#111.
Wow, that was perfect. Looking through your answers i see you have already responded about removing Linkwithin, but reply 23 and 25 did not work for me:(
[style]
.blog-pager, .footer, .post-footer, .feed-links, .sidebar, .footer-inner { display:none !important;}
.main-inner .columns {width: 100%;padding-left:0 !important;padding-right:0 !important;}
.fauxcolumn-left-outer .fauxcolumn-inner, .fauxcolumn-right-outer .fauxcolumn-inner {border:none;}
[/style]
@MariB
I see "Limkwithin". That's the title of your Linkwithin HTML/Javascript gadget. Go to Design > Page Elements > Edit to remove it.
Hello there,
I'd like my footer to appear on my static page. can you please help me? That's my blog-->
http://cockasnook.blogspot.com/
thanx
@miss V
Remove .footer from code line 4.
no, It didn't work. That's how my code looks like:
[b:if cond='data:blog.pageType != "static_page"']
[b:if cond='data:post.allowComments']
[b:if cond='data:post.numComments != 0']
[a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'][b:if cond='data:post.numComments == 1']1 [data:top.commentLabel/][b:else/][data:post.numComments/] [data:top.commentLabelPlural/][/b:if][/a]
There's nothing else in my code referring to static pages.
:(
@miss V
I'm referring to this:
style]
.blog-pager, .footer, .post-footer, .feed-links, .sidebar { display:none !important;}
#outer-wrapper {width: 1150px; padding:0px;}
#main-wrapper{background:url() #ffffff; width: 1000px; margin: 0px 10px 0px 10px;}
.post {padding: 10px 0px 0px 0px; }
.post h3 {font-size:160%;}
[/style]
this is the very code YOU added in your template to make the contact page looks as it is now, remember?
Obviously I don't.... : \
I'm lost in the codewolrd !
That's why we need your lovely advice blogs. That worked just fine. Thanks
x
Hi !
I didn't see you have a topic on 'pages' on your blog so i posted my question on your facebook page.
But i am repeating here, for other can also benefit from it. And also, perhaps in the anticipation of a early reply :)
So, my blog is www.anumukti.in. I have added 'pages' widget and have put it on the sidebr (you can see the title 'pages'). And so far i have added just one new page. But it's opening truncated on the homepage like any other post, but here the 'read more' is not able to expand it. see: http://www.anumukti.in/p/nirs-report-nuclear-energy-is-dirty.html
What to do? Once i am able to get this, then i hope i will be able to customize the static page as you have guided in this post. Your instructions are easy to follow. Thanks a lot.
OMG I am so glad I found you...This has been extremely helpful. However, I cannot for the life of me get the middle space to widen in order to take up more of the blank space. I did everything you put in your post, and they tried the couple of things that were in the comments. Still no luck. Would you be able to let me know what I am missing here. P.S. I couldn't find my header width...Here is my blog... http://www.nicolesrevolution.blogspot.com
P.S.S. I removed all what I tried and left only what you initially indicated originally. Thanks so much!!
@Queen Nicole
Have you tried this (from step I.4)?
For Designer template, replace code line 5 with:
.main-inner .columns {width: 100%;padding-left:0 !important;padding-right:0 !important;}
@अणुमुक्ति
The problem is caused by an obsolete auto read more code. Get the auto read more code that works here:
Blogger Auto Read more with thumbnail
You are AWESOME!! GIVING TONS of ROYAL Kisses your WAY!!!
This is fantastic! Thank you!
Hi,
Im a newbie to blogger. I have set up my page, but limited my content until I get all of the elements and the look that Im going for completed. I will admit that I dont know much if anything about HTML.....
Here is my question;
I want to be able to set up a page with a contact form (which I have done) but I want to remove the sidebar from that page and any other pages that I might add through the set up process....Is this possible to do? I have tried this in blogger draft to no avail as the options that I see on many tutorials are non-existent for me?
So if it is possible to have additional pages without all of the elements on my home page, can someone explain to me how to do this?
Thanks so much.....
Comments on this post are closed.