I recently received an e-mail asking about removing the “Posted By” line for posts on Blogger. The technique for removing this line is similar to removing such things as the date line from a post.
In this post I will provide two ways to remove the line. The first method will show how to removed the line for all posts, while the second method will show you how to remove the line from static pages.
Removing for All Posts
Removing the “Posted By” line from all posts is very easy to do, and requires no manual changes to your template’s XML data.
The following steps show you how to do it:
- Open up the “Dashboard” in Blogger and click the “Layout” link for the blog you want to edit.
- From the “Page Elements” web page, click the “Edit” link for the blog posts element. The “Configure Blog Posts” window will open.
- Locate the checkbox beside the line that contains your Blogger ID. The ID should be displayed beside a textbox where you can type in information. Uncheck the checkbox.
- Scroll to the bottom of the window, and click the “Save” button.
- Display your blog in a new window and you will notice that your posts no longer display your name.
While this works for all posts, if you want to only hide the author’s name for posts that are meant to be static pages, you will need to perform some template changes.
Removing for Static Pages
I have written two posts in the past that outline methods you can use to convert blog posts into static pages. Using the same idea, you can hide the post author’s name.
- Open up the “Dashboard” in Blogger and click the “Layout” link for the blog you want to edit.
- From the “Page Elements” web page, click the “Edit HTML” link to display the HTML for your template.
- Check the “Expand Widget Templates” checkbox.
- Search for:
data:post.author
This will then highlight the location where the author’s name is displayed.
- Before that line add an if statement that will exclude the author’s name from being printed for static pages.
- Once you make the change, save your template and load your blog in another window. If it was done correctly, the “Posted By” line should not be displayed.
For example, for Technically Easy, all my static pages are publish on June 23, 2006, so I would include the following:
<data:post.authorLabel/> <data:post.author />
</b:if>
The above states that the author line should be printed only when the post data is not June 23, 2006.
Related Posts
How to Create Pages in Blogger
Have Your Say
- Do you have Blogger tips for editing your template?
- Are there other things you would like me to post regarding changes to your template?