Saturday, September 12
Categorized | Blog Promotions, blogger, Design, internet
Add Author photo on blog posts - Customize blogger for group blogging
Saturday, September 12, 2009
Step 1 : Create an Avatar For you.Refer this post for more info on that.
Step 2 : Host your Avatar on any free Image hosts and collect a link.
Step 3 : Sign in to blogger and Go to Layout -> Edit HTML -> Click on Expand Widget Templates
Step 4 : Add the Image code in your Blogger template ;
Search for this code or similar
<b:if cond='data:post.url'>
<a expr:href='data:post.url'><data:post.title/></a><b:else/>
<data:post.title/>
</b:if>
Now Add this code just before the <a expr:href='data:post.url'>
<b:if cond='data:post.author == "Author1"'>
<img height='50' src='Author-1-image-URL' width='50'/>
</b:if>
<b:if cond='data:post.author == "Author2"'>
<img height='50' src='Author-2-image-URL' width='50'/>
</b:if>
Change the values in blue, suit to your blog
Step 5 : It's all done.Click save
How It Works
The thing is Simple.The real code to add image with the post title is ;
<img height='50' src='Author--image-URL' width='50'/>
If
you only add this code, then same image will be appearing for all
posts.So we have to add the code to change the image on the basis of
Author.You can use the below code to customize the 'widget 001' to
appear only on the posts by the assigned Author (here Author 1)
Remember to give the real name of author, appearing on the post as author.
<b:if cond='data:post.author == "Author1"'>
</b:if>
Remember to give the real name of author, appearing on the post as author.
If your blog have only one author, then this simple code is enough.just change tha Author--image-URL with your Avatar.
Insted of just avatar, you can use social bookmarking buttons also here !
NB
: Using this hack may slows down you page, if you are using any images
with bigger size.Better use PNG Images of small size and less graphics !
This post was written by:
Rajeel KP - who who manages the LabOfWeb.com.
Rajeel KP is a Teen blogger, who is 15 yrs old from India.He loves Technology and computers from the very first day when he opened his eyes. He blogs about computer tips, web 2.0 and blogging.He also writes guest posts at another sites.You can contact him at any time and he would be pleased in making new and new relationships.
Subscribe to:
Post Comments (Atom)







1 Responses to “Add Author photo on blog posts - Customize blogger for group blogging”
September 13, 2009 6:39 PM
hey rajeel ..nice tutorial for blogger users to display author image ..!!
but wht about me ..i m on wordpresss ??
i want to display author image on
http://knowbest.info
Post a Comment
Hi friend ,
Thanks for commenting on my blog
It's open, dofollow ; But please don't spam.
;-Regards
Rajeel KP