Have about author widget like in WordPress | Blogger Hack
Let’s begin with the tutorial.
First of all plan for the layout of the author’s description section.
Have a reference of above image, it is of wordpress theme.
We’ll use CSS and HTML to layout the author’s biography section. Open Dreamweaver or Notepad and code your basic layout there. Then style it with proper and valid CSS.
Now we’ve the layout ready. We’ll have to add Blogger’s conditional tags to it for specific user. Let me show you how to do this.
If you don’t know much about codding, then just follow the methods described below:
1. Login to Blogger dashboard
2. Navigate to Layout> Edit HTML and Expand Widget templates
3. Search for the following code inside your template : <data:post.body/> 4. Insert the following piece of code just below the <data:post.body/>
<b:if cond="data:post.author== "AUTHORNAME">
<div class="about-author">
<div class="author-info"> <img src="http://www.imageshack.com/image_suraZ.jpg" /> <br />
<data:post.author/>
</div>
<div class="author-data">
<p> suraZ has been posting lots of article in You Can Hack Blog.</p>
</div>
</div>
</b:if>
<b:if cond="data:post.author== "ANOTHER_AUTHORNAME">
<div class="about-author">
<div class="author-info"> <img src="http://www.imageshack.com/image_suraZ.jpg" /> <br />
<data:post.author/>
</div>
<div class="author-data">
<p> suraZ has been posting lots of article in You Can Hack Blog.</p>
</div>
</div>
</b:if>
<b:if cond="data:post.author== "YET_ANOTHERAUTHOR">
<div class="about-author">
<div class="author-info"> <img src="http://www.imageshack.com/image_suraZ.jpg" /> <br />
<data:post.author/>
</div>
<div class="author-data">
<p> suraZ has been posting lots of article in You Can Hack Blog.</p>
</div>
</div>
</b:if>
Refer to the image for more clarification:
Replace the author name according to your need and information as well. Save the changes you have made. You are done.
Now search for <b:skin><![CDATA[ and paste the CSS code just below that:
.about-author {
margin:0 auto;
padding:3px;
width:600px;
}
.author-info {
float:left;
width:28%;
}
.author-data {
float:right;
width: 70%;
}
margin:0 auto;
padding:3px;
width:600px;
}
.author-info {
float:left;
width:28%;
}
.author-data {
float:right;
width: 70%;
}
Refer to the image:
If you have more users then continue adding it just below one another end. You can see the working demo in this blog and in Hacktutors
Sign up here with your email
ConversionConversion EmoticonEmoticon