Have about author widget like in Wordpress | Blogger Hack

Unlike WordPress, Blogger does not support plugins and as a result you can have extra customization of your blog. There are several plugins that delivers specific contents and widgets for wordpress but we are not allowed it in Google. But Blogger is highly customizable. If you are a group of authors working on a blogger blog, posting separately and want to show your biography or personal information on your posts, you can do so by applying author specific 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%;
}




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

9 comments:

  1. not understood.....can you please explain in detail

    ReplyDelete
  2. First let me assume that you know Basic Hml coding.
    Go to Blogger HTML design mode, check on Expand widget button.

    The CSS code goes between the tag and the html code must be kept just below the Code.

    This is the easiest way and perhaps the only possible way to do it.

    ReplyDelete
  3. will you please where to insert first two codes????

    ReplyDelete
  4. @Malhaar: Consider the first code, in article. It goes below the .

    The second code is the CSS code, that goes inside

    ReplyDelete
  5. i am really not into this coding thing.... i am still not able to understand it...... will you please do it for me???? or mail me a screencast?????

    ReplyDelete
  6. @Malhaar: I've updated the article, Please read it again.

    ReplyDelete
  7. thank you...... for updating the article..... I will try now

    ReplyDelete
  8. Is there a way to customize the colors to match blog in this hack?

    ReplyDelete
  9. @Rippa:

    To add new colors:

    Replace the following code:


    .about-author {
    margin:0 auto;
    padding:3px;
    width:600px;
    }
    .author-info {
    float:left;
    width:28%;
    }
    .author-data {
    float:right;
    width: 70%;
    }


    With this one:


    .about-author {
    margin:0 auto;
    padding:3px;
    width:600px;
    background:#cccccc; /* Put the color of about widget here */
    color:#000000; /* Put the color of text here */
    }
    .author-info {
    float:left;
    width:28%;
    }
    .author-data {
    float:right;
    width: 70%;
    }


    I hope this will help.

    ReplyDelete