Changing the Author is Simple

One day I was playing around on my test blog (where I do all my editing and trial and error hacking) and reading the code and I saw a simple little line... which made some sense to me... so I deleted it. After publishing my test blog I noticed that line I deleted was the line I wanted.

Like you... I have multiple blogs and I wanted different author names so people couldn't connect me to all my work. Yes... I'm strange and I like to keep somethings separate and free-standing. I'm just like some book-authors which write under different "pen" names... I publish under different "button" names.

Back to my deleted line. After my testing I realized I could replace that simple line with everyday text and it would publish properly. That line is <data:post.author/>.

Here's how to get to it:
Template >> Edit Html >> Expand Widgets Template >> scroll down till you see <div class="'post-footer'"> (maybe 1/2 way down). This is where you want to be. A few lines down you'll see <data:post.author/>. Now delete this line and replace it with a name by simply typing it out with NO CODING or you can insert a picture by adding <img src="http://www.site-name.com/picture-name.jpeg" />.

http://www.site-name.com/ = where the picture is hosted
picture-name.jpeg = the actual name of the picture
(each site-name and picture name is different)

Here is the final look and feel of the Author Name in text form:
<div class="'post-footer'">
<p class="'post-footer-line"><span class="'post-author'">
<b:if cond="'data:top.showAuthor'">
<data:top.authorlabel/> YouDonkey (YD)
</b:if>

Here is the final look and feel of the Author Name in picture form:
<div class="'post-footer'">
<p class="'post-footer-line"><span class="'post-author'">
<b:if cond="'data:top.showAuthor'">
<data:top.authorlabel/> <img src="http://www.site-name.com/picture-name.jpeg" />
</b:if>

Questions?

No comments:

Post a Comment