http://www.test2.southernspeakers.net/p/archive.html
The idea behind this tutorial is to place the Archive gadget on all the pages, and then code it in such a way that it will only be visible on one selected static page. Before starting this tutorial, I am going to assume that you already have an Archive Static Page created and optionally Pages Gadget (menu bar) placed below your header.
Step 1:
Objective: To place and reposition Archive Gadget
If you don't already have an Archive Gadget, go to Page Elements/Layout - Add a Gadget - Blog Archive - and place it above Blog Post (below will do fine as well) - Save
Doing this right, you will now see Archive gadget on top of every single page in your blog, including Static Pages.
Objective: To place and reposition Archive Gadget
If you don't already have an Archive Gadget, go to Page Elements/Layout - Add a Gadget - Blog Archive - and place it above Blog Post (below will do fine as well) - Save
Doing this right, you will now see Archive gadget on top of every single page in your blog, including Static Pages.
Step 2:
Objective: To hide archive gadget from being displayed in all pages, except for one defined page. And to remove other page elements from Archive page.
Needless to say, that one defined page is our dedicated Archive page that you have created. If you have not already done so, go Posting - Edit Pages - New Page and just create a blank page with the title Archive.
If you're using the old Blogger interface: Go to Dashboard - Design - Edit HTML - Back Up (Download Full Template) -
If you're using the new Blogger interface: Go to Dashboard - Template - Backup/Restore - Download Full Template - Close - Edit HTML - Proceed -
Find for </b:skin> and place the following code directly below </b:skin>
The code in place:
If for some reasons the code does not work, and you're absolutely sure that you have changed the address in the code above to your archive page's address, kindly check if the ID of your archive gadget and blog-posts gadget are the default ones. Default ID for the archive gadget is BlogArchive1. Default ID for blog posts is Blog1. See here to learn how you can check the IDs of your gadgets.
You are done! You have placed your Archive gadget on only your archive page. If for some known reasons you find that your blog's margin has not been level, please refer to this tutorial on how to fix this margin.
Objective: To hide archive gadget from being displayed in all pages, except for one defined page. And to remove other page elements from Archive page.
Needless to say, that one defined page is our dedicated Archive page that you have created. If you have not already done so, go Posting - Edit Pages - New Page and just create a blank page with the title Archive.
If you're using the old Blogger interface: Go to Dashboard - Design - Edit HTML - Back Up (Download Full Template) -
If you're using the new Blogger interface: Go to Dashboard - Template - Backup/Restore - Download Full Template - Close - Edit HTML - Proceed -
Find for </b:skin> and place the following code directly below </b:skin>
<b:if cond='data:blog.url != "http://testblog8-southernspeakers.blogspot.com/p/followers.html"'>
<style>
#BlogArchive1{
display:none;
}
</style>
<b:else/>
<style>
#Blog1{
display:none;
}
</style>
</b:if>
This code will hide the archive gadget from all the pages except for the page that you input in the first line. Also, usual page elements will be hidden from this page. To use this code in your blog, change the URL to your Archive page's URL.The code in place:
If for some reasons the code does not work, and you're absolutely sure that you have changed the address in the code above to your archive page's address, kindly check if the ID of your archive gadget and blog-posts gadget are the default ones. Default ID for the archive gadget is BlogArchive1. Default ID for blog posts is Blog1. See here to learn how you can check the IDs of your gadgets.
You are done! You have placed your Archive gadget on only your archive page. If for some known reasons you find that your blog's margin has not been level, please refer to this tutorial on how to fix this margin.


Thank you, just a couple lines of code did exactly what I wanted!
ReplyDeleteGlad it worked.
ReplyDeleteThank you! Thank you! Thank you! I've been trying to figure this out for awhile and you had the perfect solution and it was easy to follow.
ReplyDeleteAwesome! I did it!!! Thank you for ALL your help!
ReplyDeleteKristin: Happy to help, as always.
ReplyDeleteCamilla: Glad you find it helpful. Thanks for dropping by.
Hi. I did exactly what you said, and while the blog archive gadget does now appear on my archive page, it still appears on my home page and the other blog elements are still on my archive page. what should I do?
ReplyDelete@Anonymous: What's your blog's address? Sounds like you are having problem in steps 2 and 3. Make sure you make the necessary changes in step 2 and 3, you have to change the URL there.
ReplyDeleteHello,
ReplyDeleteI was so pleased to find this article, and tho' I believe I have been following the instructions, so far I haven't been able to get even Step 2 to work. Each time I preview after inserting the html, there is a large block of html at the top of my blog.
Could it have something to do with this:'' ?
I would so appreciate any help you can give.
@Lesley: Large block of HTMLs, I recognize this symptom. You're placing the HTML in step 2 below <b:skin>, that's incorrect. You should place it below </b:skin>, they are different. And don't forget to change the URL in the code in Step 2 to that of yours. I'd done it for you but you have 4 blogs, I'm not sure which one you're currently working on.
ReplyDeleteTry placing the code below </b:skin> and then see how it goes, and get back to me.
You were so right! So I fixed that and double-checked the URL and didn't get the html block, but it still isn't quite right. When I click on my "Archives" page, the archives aren't there in the main body of the page, but are still at the bottom left (where I have moved everything until I get them in pages). They do only show up in the lower left when I click "Archive" and don't show up when other pages are clicked.
ReplyDeleteSo appreciate your help. By the way, it is my http://smallmeadowpress.blogspot.com
blog.
@Lesley: Hi again. Looks like you have gotten Step 2 and 3 right, but you have skipped step 1. Go to Page Elements and place your archive above 'Blog Posts'. Then you'll be able to see it in your main body (in archive page).
ReplyDeleteIf you want your archive to show both in your dedicated page and on the sidebar, simply add another archive gadget to your sidebar, which is totally independent to the tweak in this page. See this link on how you can duplicate your archive gadget.
Well, that is the tricky part. I have chosen a layout that doesn't have a gadget bar above my posts. I saw in your instructions that it is also ok to put it below, but it doesn't seem to work out, actually.
ReplyDeleteAny suggestions? I do hope this will work as I want a really uncluttered, centered blog. And I was hoping to do the followers in the same way after I figured out the archives.
@Lesley. You don't have to have the gadget section to place the archive gadget above your 'Blog Posts'. In Page Elements page, click on your current archive gadget, and drag it to either above or below your 'Blog Posts' box. Hold it there a little longer until a section appears, then let it go, and it will sit there fine.
ReplyDeleteYou're using the Simple template, this can be done. And yes it would work for Follower's gadget too. Just change '#BlogArchive1' in Step2 to '#Followers1'.
Thank you for encouraging me to be a little more assertive with moving my archive gadget. It is accomplished!
ReplyDeleteI will do the same with the followers gadget....do you know if you can do this with other gadgets? I still have my blog list that I don't know where to put.
I am also wondering if all of these can be centered on the pages? I am glad to look around your site to find the answers...you have already kindly given me enough time to walk me through it all.
With thanks,
Lesley
@Lesley: I'm glad you managed to get it to work, it's looking good now. I'm aware that the text is left-aligned. The reason is because that's how archive's gadgets are made. But you can easily bring it to the center. Go to Dashboard - Design - Template Designer - Advanced - Add CSS - paste the following code - Press enter after the last character of the last line } - Apply to Blog:
ReplyDelete#BlogArchive1{
padding-left: 150px;
}
Adjust the value 150 accordingly.
And yes, you can place any gadgets in a dedicated static page. All you have to do is address the gadget correctly by its ID (eg: #BlogArchive1, #Followers1). I've written a post on how one can identify a gadget's ID easily, you might want to check it out.
Have fun tweaking your blog.
Holy frack. I'm trying to do away with my left column and figuring out what to do with my growing label list was killing me (I hate the cloud). I wanted to do a page but the thought of a manual list was giving me hives. This just..YES!
ReplyDelete@Barbara: Looking good. Glad you managed to tweak the code to work with labels gadget. That's great.
ReplyDeleteRegards.
Thank you for this it is just what I am looking for. I am having problems with step 2 but I have also no idea where I change the URL? Does this make sense? Thanks you for any help you can give me.
ReplyDeleteRegards Amber
OK, after many attempts I have done it!!! Yeah, the only problem is that the archive heading is below the archives themselves. What have I done this time?
ReplyDeleteRegards Amber
@Amber: Glad you managed to go through the first two step.s However, the third step is not properly executed. That is why you're still seeing the word 'Archive' below your gadget. It's just a page title, it doesn't belong to your actual archive gadget.
ReplyDeleteTo execute step 3, go to Dashboard - Design - Edit HTML - Download Full Template (for back up purposes) - Find for </b:skin> - Paste the following directly below </b:skin>:
<b:if cond="data:blog.url == "http://dragonfly-lifestyle.blogspot.com/p/archives.html"">
<style>
#Blog1{
display:none;
}
</style>
</b:if>
That should remove the title and everything else that doesn't belong to a dedicated gadget page (share buttons, paddings, margins, etc)
Regards.
This almost worked for me, except that I was able to get the Archive to display on the archive page, but it was still displaying on the main page and other post elements were still displaying on the archives page, even though I inserted the codes from steps 2 and 3. Help please?
ReplyDelete@Nnenna: Sounds like Step 2 and 3 didn't work. Did you change the address in the code? It's okay, perform Step 1, then go to Dashboard - Design - Edit HTML - Find for </b:skin> - paste the following code directly below </b:skin>
ReplyDelete<b:if cond='data:blog.url != "http://starcrossedsmile.blogspot.com/p/archive.html"'>
<style>
#BlogArchive1{
display:none;
}
</style>
<b:else/>
<style>
#Blog1{
display:none;
}
</style>
</b:if>
Make sure you change the address in the code above. I've entered a dummy URL, you have to change it into your actual archieve page's address.
It is working now, thank you so much for your help and for this tutorial!!
ReplyDelete@Nnenna: Glad that worked. Looking good now. Thanks for dropping by.
ReplyDeleteRegards.
You have made me one happy lady! THANK YOU!
ReplyDeleteI pray that God blesses you and returns the favor to you tenfold. :D
@Anne Lang Bundy: Just the thing that I needed to hear in the morning. Thank you very much, and God blesses you too.
ReplyDeleteIf you're looking for an answer that you can't find anywhere in this blog (or the internet), feel free to shoot it here.
Hi, I'm experiencing the same issue as Lesley Austin. My archives are at the bottom left of my blog and not in the main body. I made sure to place the code below and its still not centered.
ReplyDeleteSee: http://classicdaiisy.blogspot.com/p/archive.html to see what I mean.
@classic daisy: Looks like you've missed Step 1. First, go to Dashboard - Design - Page Elements and place your archive gadget about your 'Blog Posts' element. Then proceed to step 2.
ReplyDeleteIf you want to add two archive gadgets (one in the dedicated page, and another one that shows all the time), refer to this tutorial.
Cheers.
thank you so much it has worked but the list is off to the left and wont center and ive tried everything to change it..is there anyway you could help?
ReplyDeleteAlso it's got rid of the title on my page how could i get that back?
Thank you so much!
@Bibisfootprints:
ReplyDelete1) To center your archive texts, go to Dashboard - Design - Template Designer - Advanced - Add CSS - paste the following code - Press enter after the last character of the last line } - Apply to Blog:
#BlogArchive1_ArchiveList{
text-align: center;
}
2) As for the title, I have removed the usual BlogPost element from the HTML so that it won't collide with the Archive gadget. That is why the page's title has been removed as well. An easier alternative is to go to your archive page, and click on the 'quick edit pen/pencil' icon for your archive gadget. Then, in the Title field, insert the title of your page. You could edit your Archive gadget by going to Dashboard - Design - Page Elements as well, but first you have to remove the modification that you have made from this tutorial, or else you won't be seeing the Archive gadget in Page Elements.
Cheers and God bless.
thank you so so so much!!!!
ReplyDeleteGod bless ♥ x
ahh i one other thing is there a way to center my followers at the bottom of my page?
ReplyDeletesorry for all the questions :P
God bless ♥ x
@Bibisfootprints: I wish I could give you a simple straight-forward answer, but I can't. Here's the deal. Followers gadget contains iFrame elements. We can't easily alter any gadgets that have these elements. But we have some alternatives to look at:
ReplyDelete1) We can always add padding to the left-side of the gadget. This will bring the gadget towards the center. But this is not dynamic. As the numbers of followers in your blog increase, more icons will be added to the right hand side of the gadget, and the left hand side will be void forever. In the end, you followers gadget will not be proportional. That is not recommended.
2) This is what I suggest. Go to Dashboard - Design - Template Designer - Layout - Footer Layout - Choose the 3rd option (the one with 3 footer sections) - Apply to Blog. Now go to Dashboard - Design - Page Elements, and you'll be able to see 3 sections in your footer. Leave the left and right sections gadget-less, and drag your followers gadget to the center section.
This is just temporary solution. Once you have lots of followers, your followers' icons will run across your blog horizontally. At that point, you won't have the need to center the follower's gadget anymore. You can always undo what you have done today. If you have follow-up questions on this, feel free to fill up this contact form.
Cheers and God bless.
thanks so much!
ReplyDeleteGod bless ♥
@Bibisfootprints: Happy to help.
ReplyDeleteCheers and God bless.
i was able to make the archives page work as per your instructions. now, i want to do the same with a labels page. do i do the same steps? do i put the code below the archives page code?
ReplyDeletemuch thanks for the help.
@azzul:A post just for you.
ReplyDeleteCheers and God bless.
outstanding!! really appreciate it.
ReplyDelete@azzul: happy to help. Cheers and God bless.
ReplyDeleteooops! spoke too soon.. it worked fine on my test blog but when i applied it on my actual blog, the labels page has all the elements that are on my sidebar. how do i remove them from the labels page and just keep the 'labels' widget there on the labels page?
ReplyDeletetake a look: http://thebluescollective.blogspot.com/
again, much thanks.
@azzul: I will post a reply in the label post page.
ReplyDeleteCheers.
Super, super, super! Thank you! You are great!
ReplyDeleteGreetings for Poland!
@Poznan Nowych Doznan: Glad you like it. Cheers!
ReplyDeleteThanks for the info!!! :)
ReplyDelete@Katie: Glad you find it helpful. Cheers.
ReplyDeleteThis worked for me except I can't get the blog archive to disappear from the other pages. I checked the ID and it was the same you used. I also used the other code you provided someone else who was having the problem but to no avail. Can you help me?
ReplyDeleteforloveofadventure.blogspot.com
@a&kAdventures : I'm seeing a huge bunch of template code at the top of your page. Tell you what, email me, and I'll be in touch with you to get them fixed. Use this contact form to email me.
ReplyDeletethis is really helpful. Thank you so much! :)
ReplyDelete@Ramona: You're welcome. Cheers and God bless.
ReplyDeleteoh yes! it works! and I've made it on the center not on the left. thank you :)
ReplyDeleteI want to add some texts before the archive gadget. what should I do?
ReplyDelete@Pingkan: To add a text above the archive gadget, here's what you should do:
ReplyDelete1) In step 1, add both Archive gadget and Text gadget.
2) You need to find out the ID of your text gadget. Click here to find out how you can identify the ID of any gadget.
3) For step 2, under the CSS part, you need to use the following code instead, where #YOURIDHERE should be the ID of your text gadget.
#BlogArchive1, #YOURIDHERE{
display:none;
}
That will be it. Summary: Place both gadgets, find out the ID of your text gadget, and include the ID of your text gadget in the code as shown above.
thank you :)
ReplyDeleteI'm sorry. just noticed that Share This, link Home that should be under blog, and "Subscribe to: Posts (Atom)" are not there. I want to show it like my About page. what should I do?
ReplyDelete@Pingkan:
ReplyDeleteRemove the following lines from the code:
<b:else/>
<style>
#Blog1{
display:none;
}
</style>
Cheers.
Thanks for this--worked perfectly!
ReplyDeletethis is great i have just tried it and gueass what? it worked thanks southern speakers
ReplyDelete@Greens: You're welcome. Cheers.
ReplyDelete@Matehyeric: Happy to help, as always. Cheers and God bless.
hi! ive got so confused just now
ReplyDeleteseems so simple to do but it doesn't work ;(
@ChicaLoca: At which step did you get stuck?
ReplyDeleteI advise you to revise the code that you've inserted in Step 2. In your case, it should be:
<b:if cond='data:blog.url != "http://chic4loc4.blogspot.com/p/archive_5368.html"'>
<style>
#BlogArchive1{
display:none;
}
</style>
<b:else/>
<style>
#Blog1{
display:none;
}
</style>
</b:if>
thanks! just working! sometimes it takes me longer to adjust some stuff ;P
ReplyDelete@ChicaLoca: Glad you've fixed it.
ReplyDeleteCheers.
Thank you, thank you for this excellent tutorial! I was successful in adding a Blog Archive page to my blog, but for some reason it is randomly showing blog post titles for August 2011 & no other months. I would either like it to show all titles or none...any suggestions? And thank you again, this was truly helpful!
ReplyDelete@Melanie: That's funny. Try this.
ReplyDelete1) While you're logged in, go to your archive page.
2) Click on the 'Quick Edit' icon. You should now be able to edit this gadget.
3) Select 'Dropdown Menu' as your style.
4) Click 'Save'.
5) Now close your browser.
6) Re-launch your browser, and repeat the same steps above, but choose 'Hierarchy' as your style this time.
Cheers.
Thanks for the suggestion. I tried it, but it still came back the same way...with August posts listed out. Very strange! I would actually like it if all the months had the posts listed out, but that's okay. I guess it just is what it is! Thank you so much for the help!
ReplyDelete@Melanie: That is weird. If you have spare time, you might want to undo the tweak in this page, and fix the archive gadget first by restoring it to its default. You can do this by going to Dashboard - Design - Edit HTML - Backup (Download Full Template) - Revert Widget to Template Default. That will remove all HTML direct changes that you have done to your template, but it will also fix lots of broken things - hopefully the Archive gadget as well.
ReplyDeleteThanks for the tutorial.
ReplyDeleteWhat did I do incorrectly if I still get the "older posts" at the bottom of my home page with nothing listed on my Archives page? The link is working; I can navigate to and from. It's just empty.
@Pam: Check the code that you've inserted into your template. This is what you should use:
ReplyDelete<b:if cond='data:blog.url != "http://inkyofferings.blogspot.com/p/archive.html"'>
<style>
#BlogArchive1{
display:none;
}
</style>
<b:else/>
<style>
#Blog1{
display:none;
}
</style>
</b:if>
Hi, I recently discovered this blog, which is awesome by the way, but I was trying this and whenever I tried to put my URL into th code, it would turn the ""s in "s.
ReplyDeleteAnd of course, it doesn't work...
Hi Soggy,
DeleteAfter completing Step 1, copy and paste the following code directly into your template. Place it below the
</b:skin> tag. All the best :)
<b:if cond='data:blog.url != "http://luna-is-best-test-blog.blogspot.com.au/p/archive.html"'>
<style>
#BlogArchive1{
display:none;
}
</style>
<b:else/>
<style>
#Blog1{
display:none;
}
</style>
</b:if>
It's still doing the silly entity reference, and still not showing up :(
ReplyDeleteI tried that again, and again it just replaces the "" marks with the stupid entity reference. I dunno if that's supposed to happen, but regardless it still doesn't work :(
ReplyDeleteHi Soggy,
DeleteWhen I inspected your source code, it seems like the code is working, but the address isn't matching. Can you show me the code that it changes into? Paste the code in www.pastebin.com.
Cheers.
Here it is:
ReplyDeletehttp://pastebin.com/1SaZwEr6
If I've done something obviously stupid, gonna be so mad.
Thanks
Hi Soggy,
DeleteIf you were referring to the 'quot' thingy in your code, that's perfectly normal. In fact, your code looks absolutely find. Try this instead:
<b:if cond='data:blog.url != "http://luna-is-best-test-blog.blogspot.com.au/p/archive.html"'>
<style>
#BlogArchive1{
display:none;
}
</style>
<b:else/>
<style>
#Blog1{
display:none;
}
</style>
</b:if>
<b:if cond='data:blog.url != "http://luna-is-best-test-blog.blogspot.com/p/archive.html"'>
<style>
#BlogArchive1{
display:none;
}
</style>
<b:else/>
<style>
#Blog1{
display:none;
}
</style>
</b:if>
Let me know how it goes
I put that in, but all it did was remove the posting area and the only thing that displays is the sidebar.
ReplyDeleteAlthough, that is only happening on the archive page so....
That is a positive development. Now, remove the previous code, and use this one instead. This might solve it:
Delete<b:if cond='data:blog.url != "http://luna-is-best-test-blog.blogspot.com/p/archive.html"'>
<style>
#BlogArchive1{
display:none;
}
</style>
<b:else/>
<style>
#Blog1{
display:none;
}
</style>
</b:if>
Huzzar, it WORKED!
ReplyDeleteYou are the Victor good sir!
Thanks for that XD
Finally :)
Deleteyoboy,
ReplyDeleteive completed all your steps and everythings fine, only problem is now nothing is showing in my archive page i.e. i have an empty archive page w nothing in it.
how can i fix this?
my blog is: http://robotwednesdays.blogspot.com
thanks in advance!
robot wednesdays
hey,
ReplyDeleteive followed all your steps and everythings working fine > only problem is now i have an archive page with nothing in it! its empty, none of my previous posts etc are showing
how can i fix this?
thanks in advance!
my blog is: http://robotwednesdays.blogspot.com
Hi robot,
DeleteIn Step 2 Line 1, did you use http://robotwednesdays.blogspot.co.uk/p/archive.html or http://robotwednesdays.blogspot.com/p/archive.html as your address?
Hello again.
ReplyDeleteJust a little something extra I thought of doing.
Right now my archive page is working fine, except it overrides any initial page design, only showing the widget.
Is there a way of inserting an image or something above the archive widget without it disappearing?
Oh yes, I included that by design. Just remove Line 10 from the original code to make your main area show again. Cheers!
DeleteIs there a way to get the Archive widget inside the post area. Right now it looks particularly disjointed from the page, especially since it's underneath the "HOME OLDER POST" bar.
ReplyDeleteI won't go as far to say it isn't possible. But it's certainly not easy. I've got a better idea. In your Equestrian blog, add this to your CSS and check out your Archive page. What do you think?
Delete#ArchiveList{
background-color: #D6D6FF;
border: 1px solid transparent;
border-radius: 5px 5px 5px 5px;
margin: -190px -20px 20px;
padding: 15px 20px;
}
Cheers..
Haha!
ReplyDeletePerfect!
I shoulda thought of that, but I keep forgetting that one can fiddle with individual widgets.
Lol.. Don't worry. These things are easily missed..
DeleteHey YoboY,
ReplyDeleteI was thinking dedicated page like this: upper the label gadget and after this that Greenlava's YahooPipe gadget (?) which You have also. So is it possible and how? Like two gadget inside the same page?
I also wondering how to change label page to show different number posts, less than 20. I think i've seen it somewhere.
Kristian
Technically it is possible. Get your Y! Pipe gadget sorted, and then get back to me. I'll let you what modifications you need to make to place both gadgets in the same page. Let me know your blog's address as well..
DeleteYou're gonna have to ask GreenLava about the number of posts to show. Don't know the first thing when it comes to Y! Pipes.. O
Hey,
ReplyDeleteI meant just ordinary label (page), nothing to do with pipes.
And yes, I'll come back after six months, when I'm working a new blog. Thanks for answers!
Kristian
Righttt.. You can use the following format for your link:
Deletehttp://www.southernspeakers.net/search/label/Tutorial?min-results=20&max-results=20
Since your label links are not formatted this way by default, you're gonna have to use some other gadgets (eg: linklist) to include your label's link this way.
Hey, me again,
ReplyDeleteactually, I'm gonna use blogger's amazing model, which I'm working on. I suppose it can be done by expanding widgets on html. I found this code, but I have no clue how to fix it (for example to show 10 post on blog-pager all the time including the first time pushing some label):
Well, comment don't accept the code, but I mean parts: widget id Blog1 and blog-pager-newer-link and blog-pager-older-link.
Did I make my thougts understandable with my bad english? :)
Kristian
I think I get what you mean. You're trying to include 'min-results=20&max-results=20' directly into your blog's template. Unfortunately, even when you expand widget's templates, there URLs are not in raw format. You'll see tags like this: data:newerPageUrl. These tags contain the URL data. We might be able to edit them with Javascript, but I'm not very good at it.
DeleteOK, I understand. It's not so important, I just wonder why it isn't variable option in blogger, because of some long posts. Thanks for your answer, again.
ReplyDeleteKristian