Sunday 30 October 2011

Add posted by author line below the post title

By default, posted by author line appears the post but I think it is good to have the line just below the post title specially for the blogs having multiple authors. It is easy to do.


Step 1: Go to Design(layout for updated interface)>Edit HTML, check the "Expand widget templates" check box and press Crtl+f to find the following lines of code.
<span class='post-author vcard'><b:if cond='data:top.showAuthor'><data:top.authorLabel/><span class='fn'><data:post.author/></span></b:if>

</span>

Step 2: If you unable to find the code, don't worry as it means that you have not checked the "posted by author" check post in page post option. So simply copy the code from here. If find the code, the simply cut the code and then paste it immediately after <div class='post-header-line-1'/> or before <data:post.body/>


Step 3: Preview the template. Hopefully everything should be working. Save the template.

Click here for more blogger tricks.

No comments:

Post a Comment