Previously, I showed you how to remove the date from all posts. A reader asked me how to remove the date just from particular posts, not all. You can do it also. There is 2 ways you can achieve this.
1. You can create a page.
- In blogger, a page does not have the date.
- Login to your account -->Click on "Posting" tab --> Click on "Edit Pages" --> Click on "New Page" to make a page.
Note: This page does not show up on your blog post. You have to link to it from somewhere on your blog.
2. Modify your template to remove the date from particular posts
Since, Blogger Blogspot only allows you to have maximum of 10 pages. If you reach that maximum, you may want to have more pages. The only way you can have it is to modify your template.
a. Search for<span class='post-timestamp'>b. Before that line add:
<b:if cond='data:post.url != "http://www.blogsmonetize.com/2010/11/highlight-author-comments-in.html"'>c. Add the following code after the close tag </span>:
</b:if>d. The final code should look similar to the following code
<b:if cond='data:post.url != "http://www.blogsmonetize.com/2010/11/highlight-author-comments-in.html"'>Remember to change the URL to the URL that you want to remove the date.
<span class='post-timestamp'>
<b:if cond='data:top.showTimestamp'>
<data:top.timestampLabel/>
<b:if cond='data:post.url'>
<a class='timestamp-link' expr:href='data:post.url' rel='bookmark' title='permanent link'>
<abbr class='published' expr:title='data:post.timestampISO8601'>
<data:post.timestamp/>
</abbr>
</a>
</b:if>|
</b:if>
</span>
</b:if>
To remove the date from more than 1 post. You can use the nested if statement as below
<b:if cond='data:post.url != "http://www.blogsmonetize.com/2010/11/title-tag-optimization-very-important.html"'>Hope it helps you.
<b:if cond='data:post.url != "http://www.blogsmonetize.com/2010/11/highlight-author-comments-in.html"'>
<span class='post-timestamp'>
<b:if cond='data:top.showTimestamp'>
<data:top.timestampLabel/>
<b:if cond='data:post.url'>
<a class='timestamp-link' expr:href='data:post.url' rel='bookmark' title='permanent link'>
<abbr class='published' expr:title='data:post.timestampISO8601'>
<data:post.timestamp/>
</abbr>
</a>
</b:if>|
</b:if>
</span>
</b:if>
</b:if>

2 comments:
I tried this many times and could not get it to work :(
Can you please try again? I made this code by myself and tested before posting it here. It worked.
Why not leave a comment? No matter what, I'd love to hear from you!
Post a Comment