Create Static Pages in Blogger – Part 2

Note:
Blogger now supports static pages. To learn how to create pages in Blogger, follow the instructions outlined in How to Create Pages in Blogger.

I recently wrote a post titled How to Create Static Pages in Blogger where I discussed one method of using posts to mimic static pages. One question that was asked involved removing the static pages from the post archives in Blogger. From what I have seen, you can’t prevent a post from being added to the archives, which would make all static posts appear.

Using my programming background, I decided to find a way to prevent the static pages from appearing in the archives. When experimenting with different methods, I finally came up with a method that works, as well as allows commenting on the static pages. This post explains how to create this type of static page.

Benefits of the New Method

In my first post about static pages in Blogger, I removed the ability to comment on a static page. This was the flag to Blogger that indicated the page was to be static and that the date shouldn’t be displayed. Now I know some may want to enable comments on certain static pages, so this method wasn’t going to work for them.

I went back to the drawing board and came up with another solution to the problem. The new solution has two benefits:

  1. The new static pages allow comments (unless you disable this ability for the page).
  2. The static pages will be removed from the Archives widget.

If this sounds like something you are interested in accomplishing, then read on. I do have to mention that there will be some editing of your blog’s template to make these static pages work properly, but I will try to walk you through the edits step-by-step.

Gathering Some Information

Before we begin, we will first need to grab some setting values from your blog. To find these values, use the following steps:

  1. Log in to your Blogger account and then click the “Settings” link beside your blog.
  2. Click the “Formatting” link near the top.
  3. Beside the “Date Header Format” option you will notice the format used to display the dates in your post. Write down the date displayed so you know how the dates are displayed in each post. For example, the date displayed for my blog is “June 16, 2008″, which means that I will write down this date.
  4. After you know the format of the date, let’s check the format of your archives. Click the “Layout” tab at the top of the screen.
  5. Look for the “Archives” element in your layout and then click its “Edit” link.
  6. Next to “Style” you will see three option buttons, with one of them selected. Write down the name of the selected option.
  7. Beside the “Date Format” option, you will see the format of the archives dates. Write down the date you see displayed. For those that have selected the “Hierarchy” option record the value in the “Year” option.
  8. For example, mine is displayed as “January 2006″ or “2006″ for the Hierarchy option, so I will write that date down.

  9. Click the “Cancel” button to close the window.

Now, this part doesn’t require any setting lookup, but I just want you to think of a date that occurs in the year “previous” to your first post.

As an example, I have chosen “June 23, 2006″ as my date as this is exactly one year “before” I started Technically Easy. The steps I will outline below, will use this date. When following the steps below, you should use your own date instead of mine. From this point forward, all static posts should use this date.

Now that you have these two date formats and a date from the past, let’s get started on creating some static pages.

Creating a Static Page

So now we have the post date format, the archives date format, and a date that occured in the past before your first post. Let’s create a static page.

  1. Under the “Layout” tab, click the “Edit HTML” link.
  2. Let’s backup the template first. Click the “Download Full Template” link to save your current template.
  3. Once the template is backed up, check the “Expand Widget Templates” checkbox to display the code for all elements on your blog.
  4. Search for the following:
    <data:post.dateHeader/>

    This is the code that displays the date for each post.

  5. Change that line of code so it looks like:
    <b:if cond='data:post.dateHeader != "June 23, 2006"'>
      <data:post.dateHeader/>
    </b:if>

    Keep in mind that you should insert the date you chose above instead of my date. Also make sure that the date is in the correct format, which was the first format you wrote down.

    The above line tells Blogger to only display the date in the post if the date of the post is not June 23, 2006.

  6. Once you have inserted the above code, search for “BlogArchive”. This should bring you to your archives widget.
  7. Changing this code is a little more complex. The reason for this is that you can display the archives a few different ways. This is where the archives option that you wrote down comes into play.

    If you chose the “Flat List” archives, use the following steps:

    1. Search for:
      <b:includable id='flat' var='data'>
    2. Replace the entire includable section with the following:
      <b:includable id='flat' var='data'>
        <ul>
          <b:loop values='data:data' var='i'>
            <b:if cond='data:i.name != "June 2006"'>
              <li class='archivedate'>
                <a expr:href='data:i.url'><data:i.name/></a> (<data:i.post-count/>)
              </li>
            </b:if>
          </b:loop>
        </ul>
      </b:includable>

    Once again you will use your month and year chosen in place of mine. You will need to also ensure that the date is formatted the same as the your archives format you wrote down earlier. Since the date I chose was “June 23, 2006″, and my date format was “January 2006″, I would write my date as “June 2006″.

    The above lines of code tell Blogger to only display the archive link if the archive date does not equal “June 2006″. Since I started my blog after June 2006, the only posts published in that date are my static pages.

    If you chose the “Dropdown Menu” archives, use the following steps:

    1. Search for:
      <b:includable id='menu' var='data'>
    2. Replace the entire includable section with the following:
      <b:includable id='menu' var='data'>
        <select expr:id='data:widget.instanceId + "_ArchiveMenu"'>
          <option value=''><data:title/></option>
          <b:loop values='data:data' var='i'>
            <b:if cond='data:i.name != "June 2006"'>
              <option expr:value='data:i.url'><data:i.name/> (<data:i.post-count/>)</option>
            </b:if>
          </b:loop>
        </select>
      </b:includable>

    Once again you will use your month and year chosen in place of mine. You will need to also ensure that the date is formatted the same as the your archives format you wrote down earlier. Since the date I chose was “June 23, 2006″, and my date format was “January 2006″, I would write my date as “June 2006″.

    The above lines of code tell Blogger to only display the archive link if the archive date does not equal “June 2006″. Since I started my blog after June 2006, the only posts published in that date are my static pages.

    If you chose the “Hierarchy” archives, use the following steps:

    1. Search for:
      <b:includable id='interval' var='intervalData'>
    2. Replace the entire includable section with the following:
      <b:includable id='interval' var='intervalData'>
        <b:loop values='data:intervalData' var='i'>
          <b:if cond='data:i.name != "2006"'>
            <ul>
              <li expr:class='"archivedate " + data:i.expclass'>
                <b:include data='i' name='toggle'/>
                <a class='post-count-link' expr:href='data:i.url'><data:i.name/></a>
                <span class='post-count' dir='ltr'>(<data:i.post-count/>)</span>
                <b:if cond='data:i.data'>
                  <b:include data='i.data' name='interval'/>
                </b:if>
                <b:if cond='data:i.posts'>
                  <b:include data='i.posts' name='posts'/>
                </b:if>
              </li>
            </ul>
          </b:if>
        </b:loop>
      </b:includable>

    You will use your year chosen in place of mine.

    The above lines of code tell Blogger to only display the archive link if the archive date year does not equal “2006″. Since I started my blog after 2006, the only posts published in that year are my static pages.

  8. Once you have changed your archives section, click the “Save Template” button at the bottom to save your template.
  9. If you receive an error, check the changes you made to ensure you closed all of your tags.
  10. Now if you have previously created static pages, edit those posts and change the post date to your new date you have chosen.

Now whenever you publish a static post using the date you specified you can enable comments, and prevent the post from appearing in the archives widget on your blog.

This post was complex to write, so if you spot an error in my steps, please let me know and I will correct the error to avoid any problems in the future.

Adding HTML Code in Comments:

If you reply in the comments with some HTML code it won’t appear in the comments. To make the HTML code appear, ensure you add the HTML code as outlined in How to Display HTML Code in Blog Comments.

Summary

I had previously written a post that explained how to use posts as static pages in Blogger. The method provided in that post prevented comments from being displayed on that page as well as the page being displayed in the archives.

The method outline above allows comments in the post, as well as removes the post from the archives so the post acts more like a static page than an actual post.

Update:

If you are having trouble with the above code, send me your template using the contact form (link above), along with the error and I’ll have a look. Editing templates in Blogger can be difficult since the built-in editor doesn’t help in correcting syntax.

Related Posts

How to Create Pages in Blogger
How to Create a Development Blog in Blogger
Blog Designing Tops for New Bloggers
Remove Navigation Links For Static Pages in Blogger

PG

About Paul Salmon

Paul Salmon is the founder of Technically Easy. He is a an experienced PC user, and enjoys solving computer-related problems that he encounters on a regular basis.

Facebook | Twitter | Google+

Blogger, Websites and Blogging

104 Comments

  1. Posted May 5, 2011 at 4:24 am | Permalink

    @paid critique

    can you make me a review on your site?

    @admin

    is it possible to make a single page blog post?

  2. Posted March 23, 2011 at 5:12 am | Permalink

    wow… this is important posting. Terima kasih (means thanks,in my language)

  3. Posted August 8, 2010 at 5:23 pm | Permalink

    Ok so I have a 3 column custom template. I have used your static page part 1 and 2. I was wondering if you knew how to remove the side bars from the static pages and widen the posts section. I am wanting to make these pages a place where I can post several pictures of items for sale.

    • Posted August 10, 2010 at 8:29 am | Permalink

      That would require a little more work, since you would have to include checks for static pages in other locations, probably where you define your columns in the CSS portion of your template. Have you looked into Blogger’s new static page support? They now allow you to create static pages within Blogger itself.

  4. Daryl Drake
    Posted May 30, 2010 at 5:38 am | Permalink

    CODE#1

  5. Daryl Drake
    Posted May 30, 2010 at 5:35 am | Permalink

    Hi can you check my blogsite, i have a problem. On my dropdown archive 2 “November” Dropdown list are showing… the November 2009 post and my November 2008 posts. I want blogger to not display those post published in November 2008. I make sure that when i publish my post i change the schedule date. and i follow correct your HTML formatting on my layout hTML code.

    GATHERED INFORMATION:
    Sunday, May 30, 2010
    Dropdown Menu
    January

    Date of my first post is 11/28/2009
    11/28/2008 – November 28, 2008

    These are some of the codes i used on my HTML layout:

    CODE#1

    CODE#2



    ()

    </b:includ

  6. Zool
    Posted March 27, 2010 at 8:10 am | Permalink

    Thanks Paul, it worked fine.

  7. Zool
    Posted March 25, 2010 at 11:36 am | Permalink

    I have a question: in wich language should I insert the modifications in the post?

    I’m using Blogger in Italian, so my date looks like “Giovedì 25 marzo 2010″. Should i insert this literally, or translate it in english before the insertion in the code?

    Thanks a lot and keep on with the good job.

    • Posted March 26, 2010 at 11:35 am | Permalink

      You would include the modification for the language that will be displayed on the post page. If your date is in Italian, then you would do the modification in Italian.

  8. Posted January 11, 2010 at 4:44 am | Permalink

    PERFECT. Thank you so much!! Exactly what I needed, and everything worked :)

  9. alex
    Posted January 4, 2010 at 1:06 am | Permalink

    it worked perfectly well for me without errors.
    thanks

  10. Jen
    Posted December 31, 2009 at 6:23 pm | Permalink

    This worked great! If anyone has any problems – re-read the instructions!! I had errors – because I didn’t following the instructions properly. Thanks so much!!!

  11. Shantelle
    Posted December 26, 2009 at 9:49 am | Permalink

    Worked great!!! Thanks so much for all your hard work.

  12. dimstar4now
    Posted December 17, 2009 at 1:26 am | Permalink

    Great share, working on some of your upgrades now.
    Let’s see if I can do this right. I’m real good at cutting/pasting, lol :)
    Thanks!

  13. Posted December 15, 2009 at 4:57 am | Permalink

    Thank you so much for this tutorial! It was immensely helpful and it’s made my blog just how I want it!

  14. Posted December 8, 2009 at 11:00 am | Permalink

    Thank you so much! With a little bit of fiddling I managed to follow it all. My blog is definitely starting to take shape. Good tutorial,

  15. Posted December 3, 2009 at 12:15 am | Permalink

    Thanks for the help. I managed to do it. But I want to remove the post from home page too. How can it be done?

  16. Posted November 23, 2009 at 1:49 am | Permalink

    Dear Paul,

    Thanks for your help, so far I have managed to do everything I want.. and I’m just doing HTML since 2 days, your website helped me a lot ^___^

    Removing the author is a bit more of a problem. The author is shown in a blue box, so when I apply the code on it isn’t working.

    The full section that contains ‘author’ looks like this:

    Do you have any idea if within this code I can hide the appearance, or is it going to be even more difficult?

    Thanks and keep up the good work.

    Dennie

  17. Posted November 22, 2009 at 4:46 am | Permalink

    Hi there, your instructions hepled me a lot.. I have now created static pages in 5 different bloggers. I have only 1 tiny problem…. I still see the ‘author’ and ‘newer posts’ displayed. This is the last thing I need to hide, do you have any ideas? I can’t find any useful information online, all they suggest is to delete the whole link, but that would also delete it from my other posts!

    Thanks, Dennie

  18. Posted November 10, 2009 at 6:45 pm | Permalink

    I believe I correctly followed the steps provided, but my “static page” is still showing when I go to the main page of my blog. Would you be able to help me fix this? Thanks so much! (It’s probably me…I’m new to blogging)

  19. Posted November 9, 2009 at 4:30 pm | Permalink

    I followed your instructions but still the post is still showing in my page, also in Archives so I revert it to my recent XML as you informed to download it for recovery. I deactive the comments in my template, does this affect the format of the static page you created? or should I activate comments first?

  20. Eva
    Posted October 23, 2009 at 9:47 am | Permalink

    i’ve sent it to you. :)

  21. Eva
    Posted October 22, 2009 at 2:18 pm | Permalink

    i’ve already followed the way you taught, but it says

    ‘Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
    XML error message: The element type “b:widget” must be terminated by the matching end-tag “”.’

    i’m so helpless as i’m new in HTML. what should i do?

    • Posted October 22, 2009 at 3:28 pm | Permalink

      If you want, you can send me your template and I’ll have a look at it. Just use the contact form linked to in the top navigation bar.

  22. ill66
    Posted October 19, 2009 at 8:10 am | Permalink

    i know, i just wanted to say, that for some code-noobies it might be confusing ;)

  23. ill66
    Posted October 18, 2009 at 4:53 pm | Permalink

    that was easy! thank you so much! :)
    i also appreciate, that you not only tell, WHAT to do, but WHY to do it (i.e. what the respective code does).

    just one point:
    i don’t know, if someone mentioned it already (i didn’t read all the comments), but i guess step 6 could be confusing for non-coding-experienced users in the current formulation.
    “entire includable section” – it’s not quite sure if just the single line is meant or the whole thing up to /b:includable

    • Posted October 19, 2009 at 8:01 am | Permalink

      You can overwrite the entire includable section with the code presented in step 6. If you are familiar with the code, you can also just edit the code to match that in step 6 as well.

  24. Posted October 10, 2009 at 7:18 pm | Permalink

    I appreciate it.
    Worked out great!

  25. Posted October 8, 2009 at 9:15 am | Permalink

    great post… was looking for something of this kind for past many days… implemented it on my blog and its working fine…a small problem though.. i don’t want to display these static pages in my home page, i.e., the only place where the link should come should be the navigation bar. However i am able to see these static pages on my home page also. Maybe if u cn check my blog u’ll get an idea of what i m saying.. any work around for that ??

  26. Sabrina
    Posted October 6, 2009 at 2:18 am | Permalink

    Hi!

    For some reason i do not have in my template. Help! :)

    • Posted October 6, 2009 at 8:37 am | Permalink

      What don’t you have in your template?

  27. Posted October 4, 2009 at 3:38 pm | Permalink

    Great post and very useful. Many thanks.

  28. Stephanie
    Posted October 3, 2009 at 2:50 pm | Permalink

    Thank you thank you thank you! This is exactly what I needed and you did a GREAT job of explaining it!! Thanks again!

  29. Posted September 27, 2009 at 12:48 am | Permalink

    Great write-up. Exactly the solution I’ve been looking for!

  30. Posted September 21, 2009 at 9:01 pm | Permalink

    Sorry, for whatever reason my examples did not show up. Basically I followed your instructions to the letter, surrounding the data tags with the ‘if’ tags. (With my specific date, of course.)

    • Posted September 22, 2009 at 12:21 pm | Permalink

      HTML tags don’t show up in the comments. It may be easier if I can take a look at your template. Would you mind sending it to me so I can see it?

      • Posted September 27, 2009 at 1:26 am | Permalink

        Thank you for whatever it was that you did to my template (I haven’t figured it out yet, though it looks different). That annoying date has been successfully vanquished! Cheers.

        • Posted September 28, 2009 at 8:54 am | Permalink

          You were close, you just needed to move the timestamp code into the same if statement as your dateheader.

  31. Posted September 21, 2009 at 8:57 pm | Permalink

    Thanks for getting back to me so promptly. This is what I did:

    …and then a little further down the page…

    Unfortunately it did not work. I tried all sorts of variations and triple-checked that all details were the same as the line that worked for my dateHeader. As I mostly copy-pasted anyway, this shouldn’t have been a problem though. I tried Blogger Help, but it insisted on being either too simple or too complicated for me.

    I would be grateful if you could tell me whether something sticks out in the above layout that is obviously wrong to you. Deleting the timestamp tag worked, but I’d rather leave it even on my static page than take it out completely. Anyway, no big deal. Thanks in advance if you find the time and energy to follow this comment up.

  32. Posted September 20, 2009 at 7:46 am | Permalink

    Hi, this isn’t really a big deal, but, though I have managed to get rid of the link in Archives (which was my main objective) and the date, I still have the TIME the page was posted. Is it possible to remove this? Perhaps I am missing something obvious, or maybe it’s a different process…

    In consideration of readers who are as ignorant in this area as me, I will admit that at first I couldn’t even seem to delete the date on my static page. After a bit of fiddling I realized that I had to literally follow your instructions (duh, I know) and add the DAY, as well as month and year – since this is my date format. But adding a time didn’t deal with the time issue, more’s the pity.

    Ridding myself of the post link in the archive worked straight away – no problems at all. Thanks heaps, as, like I said, this was the most important thing to me.

    However, if it’s possible to get rid of the time I would be interested to know how, since the static page will certainly seem that much less of a post without it. Cheers – and thank you for a very clear and concise post.

    • Posted September 21, 2009 at 9:30 am | Permalink

      I have removed the timestamps from my blogs, but I looked up the information in the Help.

      The timestamp is displayed by the data:post.timestamp tag. If you can find this tag in your template, then you can either include the same if statement as shown in the code above, or delete it entirely. If you do keep it, then ensure you also enclose the timestampLabel tag as well.

  33. Zaid Khan
    Posted September 5, 2009 at 7:16 am | Permalink

    Hello,

    I followed each and every instructions carefully but failed miserably. This is the error message I got while saving the template:

    Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
    XML error message: The element type “b:widget” must be terminated by the matching end-tag “”.

    Is there anyway you could help me getting this thing done successfully?

    • Posted September 5, 2009 at 8:26 am | Permalink

      You can send me your template and I’ll have a look at it. Usually an error like this is caused by a tag not being closed.

  34. Posted August 20, 2009 at 9:46 pm | Permalink

    I just wanted to say “Thank You”…. and I FINALLY got things to work.. after some pucking about with me being special in the head region. Altering the hierarchy one has to be the easiest so I opted to use it rather then the others, especially weekly drop down as that just DID NOT want to work for me.

    Oh well, Thanks for the info!

  35. Posted August 17, 2009 at 7:36 pm | Permalink

    Hello!

    Great solution” I must have messed up somehow, though, (even after repeated attempts) because the second part was not successful for me:

    My static pages are date-free, but the posts still appear listed in the archive.

    Could it be that my Blogger is running in spanish language? (abril 2001=april2001)

    Thanks.
    VR

    • Posted August 17, 2009 at 8:11 pm | Permalink

      When you change the code for the archives, you must make sure you write the date in your code exactly as it appears in your archives widget. For example, if your archives show abril 2001, then you must put abril 2001 in your code.

  36. Posted August 12, 2009 at 4:34 pm | Permalink

    I followed all these steps, but the static page continues to show on my homepage (it is removed from my archives, and there is no date header). How do I remove it from my homepage?

    • Posted August 12, 2009 at 8:26 pm | Permalink

      This post won’t prevent the static page from showing on the home page. I’ll be writing another post on how to do that shortly.

  37. Posted August 8, 2009 at 5:49 pm | Permalink

    I successfully removed the date header of my “static page” post, and removed it from the archives, but the actual post still shows up on my blog. Is there some way to make the post invisible/have it not show up? Sorry, I’m new to this. Please respond as I’m trying to get this blog up within the next few days.

    Thanks!

  38. JohnNP
    Posted July 23, 2009 at 12:02 pm | Permalink

    oops, it didn’t seem to appear, i meant newer posts and older posts , at the bottom of each posts.

  39. JohnNP
    Posted July 23, 2009 at 12:01 pm | Permalink

    Hi!

    Thanks for the tips, works really well and easy to follow.
    One question though, is there a few to get rid of the links at the bottom of the posts that say:

    ” <>”

    Once again, thank you
    !

  40. Posted July 20, 2009 at 12:02 pm | Permalink

    Hi Paul,

    I fiddled around and found the problem the original code was this:

    var ultimaFecha = ' ';
    document.write(ultimaFecha);

    So I had to separate the script from the rest and ended up with the following:

    var ultimaFecha = ' '

    It finally works, but it took me forever!

    Thanks anyway and maybe this will help others…

    Cheers!

  41. Posted July 19, 2009 at 5:55 am | Permalink

    Hi Paul,

    The whole process worked well for me – and I thank you so much for that! – but now the dates of my posts are not showing anymore. Any idea how to get the dates back?

    Thanks

    • Posted July 20, 2009 at 10:49 am | Permalink

      Did you include the if statement around the date to make sure it is not displayed for specific posts only?

  42. A
    Posted July 4, 2009 at 1:05 am | Permalink

    THANK YOU!

    Amazing tutorial. A bit of trial and error, but all was fine in the end and it WORKED!

    THANK YOU, THANK YOU, THANK YOU!!! :)

  43. Roselle
    Posted June 26, 2009 at 12:15 am | Permalink

    ok I’ll just stick to Atom then. Thanks again.

  44. Roselle
    Posted June 25, 2009 at 8:51 am | Permalink

    I see. If I use other feeds can I remove it then? I just don’t want my static pages to appear in my feed if it’s possible. Thank you so much for helping out.

    • Posted June 25, 2009 at 1:29 pm | Permalink

      You can if you can generate new feeds, although I would stick with the one’s blogger provides as they are automatically generated.

  45. Roselle
    Posted June 25, 2009 at 1:37 am | Permalink

    Hello, thank you for the info. It helped me a lot. I have already made static pages and removed it in my Archive. But how can I remove it from my Atom feed? Thanks.

    • Posted June 25, 2009 at 8:40 am | Permalink

      Unfortunately, you can’t remove the pages from your Atom feed as that is auto-generated by Blogger.

  46. Natalie
    Posted June 23, 2009 at 10:35 pm | Permalink

    Please help… when you say this:
    Search for , which should bring you to the code that displays the date for each post.
    Change that line of code so it looks like:

    I have this line: and am not sure if I need to delete the h2 thing or what but it isnt working for me!! Please, please help… I’m going crazy!

    • Posted June 24, 2009 at 8:13 am | Permalink

      You shouldn’t need to delete any code, just add lines of code. For the most part you will be adding a conditional if statement around the code that will perform a check. If the check is true, then the line below it will execute.

  47. kristin
    Posted May 14, 2009 at 8:36 pm | Permalink

    your code works great – thanks!! but is there any way to prevent the static post from appearing in the main page?

    • Posted May 15, 2009 at 8:46 am | Permalink

      If you have many posts, and you set the static post date far enough back, then it shouldn’t appear.

      If you have just started a blog, and have few posts, then you can just reduce the number of posts to show on the home page, and then as you add a new post, increase the number by one.

      Other than that, Blogger will display any post on the home page.

  48. Posted May 4, 2009 at 4:54 pm | Permalink

    Hi,

    I can remove the date from my post but try as I can, I cannot hide the post from my Blog Archive List. Can you have a look at the section from my HTML and let me know where I put your code lines please ?
    My archive uses the hierarchy style & the date will be Wednesday, 12 December 2007 for the post
    ***************************


    ()

    ()



    *******************

    Also how would I add some more static pages ? Would I do the same with another back dated post ?

    I’m a total NOOB so bear with me.

    Thanks,

    Andy

    • Posted May 4, 2009 at 5:56 pm | Permalink

      Unfortunately, your code didn’t appear properly. If you would like me to have a look, then you can send me your template (e-mail address is in the About link at the top).

      As for adding more pages, yes you would do the same with another back dated post.

  49. Posted April 19, 2009 at 7:31 pm | Permalink

    Hi,

    I am having the same problem Jacob had above. All my posts are gone. I have tweaked it for quite a while, and nothing works.

    Did his ever get fixed and how did he do it?

    Thanks,

    • Posted April 19, 2009 at 8:20 pm | Permalink

      Are all your posts gone from the home page or your archives page?

      Make sure the dates you chose are the same, and your static-page posts are set to the same month as your regular posts.

  50. Dee
    Posted April 2, 2009 at 4:17 am | Permalink

    lol I accidently left a message on isimplyblog but meant to go here :)

    Anyways, this is one of the best tweaks to blogger ever! Ended up taking around half an hour. I had to tweak it a little as i had no dateHeader tag in mine. But it all works and now i have a Contact Us and a Table of Contents page :) All integrated via a navigation tab on the top of the blog.

    To see the ToC in action (http://www.newbtech.com/2008/01/table-of-contents_01.html) wheee!

    A double woot for the author! thanks a lot mate!

    dee

  51. ash
    Posted February 19, 2009 at 4:41 am | Permalink

    hi im a total noob to all this – just started today putting one together – tried following your intructions and they make no sense to me at all – i keep getting red messages appearing saying that the codes are invalid etc. is there a youtube guide to all this or something i can watch?
    but i do appreciate all your efforts and no doubt its just me cos everyone else seems to know what they are doing ;-)

    • Posted February 19, 2009 at 8:27 am | Permalink

      What messages are appearing? Some people have had trouble with the single quotes in the code that I provided. Try replacing those quotes with your own in the code and see if that works. Remember to always backup your template first.

  52. Posted December 18, 2008 at 11:35 am | Permalink

    Oops!

    Don’t send the troops off yet!

    Er, just ignore my first comment… Suddenly it works…

    Was being hectic and went all “aaaaahhh”… ;-) ))

    • Posted December 18, 2008 at 12:06 pm | Permalink

      I have gone hectic, especially when I mucked up my Blogger template. The one lesson I have learned is to have a separated development blog for testing purposes. When I am happy with the changes, I then copy them over to the production (real) blog.

  53. Posted December 18, 2008 at 11:21 am | Permalink

    Jeeeezz, it’s not working. Which is really strange, since I followed your steps for my other blog for a while and it worked without any trouble (and still does)…

    Now, with the second blog, it doesn’t. I’m having the same problem Gen has: My archive widget is gone (my posts won’t display anymore either).

    In both blogs I use the same template and no matter how hard I look at the code: For me it seems like I did the copy-paste well, both layout codes look identic. I’m using different date formats though – could this be the problem?

    Any ideas? At less a hint?

    Thnx!

  54. Posted November 9, 2008 at 11:29 am | Permalink

    @Gen: Did you put in the if statement correctly for your achives by only including the month/year you want to remove from the archives?

  55. Gen
    Posted November 9, 2008 at 10:56 am | Permalink

    I mean my archive page has been gone

  56. Gen
    Posted November 9, 2008 at 10:18 am | Permalink

    ahh..it worked now but it works different.All my post has gone.

  57. Celery
    Posted October 27, 2008 at 4:24 am | Permalink

    I am using the Dilectio template for blogger….I tired to edit the code but it isn’t working for me =\

    here is the date post code:

    can you show me where to add the new code ?
    ———————————-
    Archives Code:




    ()





    can you show me where to add the new code ?

    Thank you!

  58. Posted October 1, 2008 at 3:19 am | Permalink

    I don’t have a field in my template. What do you suggest?

  59. Posted September 29, 2008 at 12:53 am | Permalink

    my problem now is the archive year 2007 that is supposed to be remove is still their…i follow all your steps but its not working for me…can you please take a look at my code? where did i miss? or something..

  60. Posted September 28, 2008 at 11:40 pm | Permalink

    @ Paul.

    yap i did it but still the all post are gone…

    can you check my source code …

    i’ve been fixing it for a couple of days and yet the same result.

  61. Posted September 17, 2008 at 8:54 am | Permalink

    @Jacob: You should add the <b:if cond=’data:post.dateHeader != “June 23, 2006?‘> line before the searched line, and then close the if statement with the </b:if>

  62. Posted September 16, 2008 at 9:12 pm | Permalink

    Paul, can you help me i got a problem…instead of not showing the static page in the post …my all post disappear…and in the arhive section the year of the static page that was supposed to be not their is still present…

    “Search for , which should bring you to the code that displays the date for each post.
    Change that line of code so it looks like:

    i was a little confuse by this..should i totally wipe this code and replace it with all of this

    ?

    Thanks..

  63. tommy
    Posted September 7, 2008 at 7:26 am | Permalink

    thanks for the great post.
    i am hosting my blogger site at my domain using F TP .

    how do i specify the url title for my static page instead of letting blogger name it using the post title (eg. myblog.com/static.html instead of myblog.com/this-is-a-static-page.html).

    somehow i cant find the option Show Url Field in formatting page.

    thanks!

  64. Posted September 5, 2008 at 6:03 am | Permalink

    @John: If you are still having some trouble, can you send me an e-mail and I’ll have a look.

  65. John Evers
    Posted September 4, 2008 at 8:32 pm | Permalink

    Strange, did all that with copy paste but gave me “Open quote is expected for attribute “{1}” associated with an element type “cond”" at the last paste…

    This is my code without your adjustments (for the last part):



    ()





    • Lisa
      Posted April 15, 2009 at 4:42 pm | Permalink

      what was the fix for John Evers’ query? I am having the same results he is!!!

  66. John Evers
    Posted September 3, 2008 at 2:54 pm | Permalink

    Thanks a lot Paul. The previous solution does the job, 99% so I guess I stay for now with that, but it is good to know there is an alternative.

  67. Posted August 30, 2008 at 11:14 am | Permalink

    I tried hard as shown in detect-it blog but could not succeed. Finally I followed your instructions. And it worked well. I am very happy. Now it seems very easy to add more static pages once I have added one.

    Many Thanks Paul for step by step instructions. Good blog. Keep up the good work.

  68. Posted August 26, 2008 at 9:10 pm | Permalink

    @kajdo: That is a different way of creating a static page. How would you go about creating a second static page?

  69. Posted August 26, 2008 at 7:52 pm | Permalink

    hi, i also spent some time to do a static about me page on my blogspot site … here is the result http://detect-it.blogspot.com/search/label/xxx … look at detect-it.blogspot.com – the how-to is not finished yet, but i will clean up the code and probably make a widget for this purpose …

    i think there are many advantages to use the “static page way” i do … try it and if you have any ideas – or other comments -> let me know

    have fun
    kajdo

  70. Posted August 19, 2008 at 11:09 am | Permalink

    @Eden: Thanks. I should provide a link to this post from the first post, much the same way I linke the first post from this one.

  71. Eden
    Posted August 19, 2008 at 4:26 am | Permalink

    Forget my comment on the first Creating Static Pages post, this hack is truly awesome! Thanks to your ideas, your website has earned a link on our new and improved (date-free) acknowledgments page.

    I strongly recommend you update the first post (at the top) with a bold link to this updated method.

  72. Chris
    Posted August 13, 2008 at 6:18 pm | Permalink

    Thank you! this was really useful and your instructions are great!

  73. Elizabeth
    Posted July 19, 2008 at 12:01 am | Permalink

    Thank you so much for this information–I have been trying to figure out how to have navigation tabs under the header, and this will go a long way in figuring that out.

  74. Posted July 18, 2008 at 7:57 am | Permalink

    With your instructions, it was technically easy.

  75. Posted July 18, 2008 at 2:20 am | Permalink

    Nice icons there chief! Technically easy, right?

  76. Posted July 16, 2008 at 11:11 pm | Permalink

    Thanks. I like to try different things with the Blogger platform. It’s not as customizable as WordPress, but there are ways of doing accomplishing certain tasks.

  77. wildcatsthree
    Posted July 16, 2008 at 3:28 pm | Permalink

    posts like this are so helpful to us bloggers when we want to do something unique to our blogs. It’s appreciated more than you know.

2 Trackbacks

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This blog uses premium CommentLuv which allows you to put your keywords with your name if you have had 5 approved comments. Use your real name and then @ your keywords (maximum of 3).

Subscribe without commenting

  • About Me

    I am Paul Salmon, an avid technology fanatic who is always learning new things. My goal is to inform and help others with technology.

    With this blog I try to cover various topics on this blog to cover a broad range of topics.

    Read more...

  • Email:

  • Advertise with IZEA Media
  • Sponsors

  • Recent Posts