Skip to main content

Making Star Rating work for modified Blogger.

I was having trouble making the new star ratings feature introduced by Blogger work for my blog. According to blogger team working on long running Blogger in Draft:
If you have customized your blog widget’s template you may not see the Star Ratings. You will need to either reset your blog widget’s template or copy the Star Ratings code from a fresh template.
Not much help.Then I remembered an old solution.

Here is how to make the Star Ratings Work.

Method 1:

The basic template for my blog is Minima, but I guess the method would be same for all the other templates.

In the Dashboard, goto Edit HTML

First and the most important step: Backup your template by clicking Download Full Template. (In case, something goes wrong and you find yourself staring at what your blog looked like three years ago, You can always Upload back the template that you just saved.)

Now, leave the Expand Widget Templates Not Checked (the default)

Use your Browser's search feature (Ctrl+F) to find the following line:

<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'>

Make a note of this line's location inside the main section.To remember the location, you may note down the simple code in the line above and below this line.

Now, delete this line and save the Template.
You will be asked to Confirm you want to delete the widget.Confirm.

Then go back to the code and put in the same line back in at the same spot inside the main section from where you had first deleted it .

Then Save.

This resets the widget.

Now, follow the normal procedure for activating the star ratings feature of Blogger:
Log into Go to Layout and edit your Blog Posts widget.

Here mark the checkbox for "Show Star Ratings" and you are done.


But, those of you running feedflare by Feedburner would have to re- install the feedflare code to make the flares work.


:Comments made me come up with another simple method to make Star Ratings work for custom blogger templates.

The method, originally suggested mentioned by the blogger team, is simple: copy the code for Star Ratings.

First tried it out successfully on my other blog about quotes from books having Simple II template.

Here’s how to simply do it:

Method 2: 

In the Dashboard, goto Edit HTML

First and the most important step: Backup your template by clicking Download Full Template.

Now,Click the Expand Widget Templates

Use your Browser's search feature (Ctrl+F) to find the following line:

<div class='post-footer-line post-footer-line-3'/>

Copy the following code for Star Rating just above that line:

<div class='post-footer-line post-footer-line-2'><span class='star-ratings'>
<b:if cond='data:top.showStars'>
<div expr:g:background-color='data:backgroundColor' expr:g:text-color='data:textColor' expr:g:url='data:post.absoluteUrl' g:height='42' g:type='RatingPanel' g:width='180'/>


Now, follow the normal procedure for activating the star ratings feature of Blogger:

Log into

Go to Layout and edit your Blog Posts widget.

Here mark the checkbox for "Show Star Ratings" and Save.
(if this method doesn't work, try this step at the beginning and then follow the rest of the steps)
View the blog, you will see the Star rating at work (wait for the complete page to load since this feature loads last of all on the page)

And it is done.


Method 3:
Update on request: Adding Star Ratings below post title
Search for :

<div class='post-header-line-1'/>

add the following code for Star rating just below it:

 <span class='star-ratings'>
<b:if cond='data:top.showStars'>
<div expr:g:background-color='data:backgroundColor' expr:g:text-color='data:textColor' expr:g:url='data:post.absoluteUrl' g:height='42' g:type='RatingPanel' g:width='180'/>

Save, Check and it's Done.

Update: In case that doesn't do it (see comments below) and you get XML error message: The element type "b:includable" must be terminated by the matching end-tag "".

To solve. Remove the last line of code: "</div> from the above mentioned copy code. That should do it.


Amanda at Bloggerbuster provides the solution for the making inline comment form work for modified blogger templates. That was a help too!


  1. do u mean that it reset all widget...??

    and i have to reactivate all the widgets i have just have ???

    please do explain...

    here is my blog... which is heavily modded...

  2. Using this method only widget named ‘Blog1’ would be reset.
    Here ‘Blog1’ is the widget and it deals with Title of the post, Body of the post and Footer of the post (that normally includes the name of the author).
    I only had to re-install feedfare after resetting, rest of the blog was fine.
    Hope that helps!
    And do take a full back up your template before proceeding.

  3. thanks vinayak

    will anything happen to page elemnts??

    sorry for bothering.. since i have done reset ( not his type of reset u mentioned) and gotinto loads of trouble...

    thats why..

    iwould love to see star rating...
    since you said it wouldreset body,footer etc.. i have done mod to show only first freww lines of my article..

  4. Page elements should remain untouched. You must have earlier gotten into trouble for using 'revert widget' feature.

    As for mod to show only first few lines...I am not sure but even that would remain untouched. Even if it changes....once you get the star rating, you can always again implement the mod for showing first few lines.

    There is little to worry if you take the complete back up of your template.

  5. thanks.. will try now and post feedback

  6. it broke my site....

    sorry to report late..

    i did all the things .. including rewriting the deleted lines...

    i lost everything... including the bb\ackground pic for my date...

    anyway i was able to bring back my site... with backed up XML ..

    any idea.. ???

  7. Check the update in the post above. Hope this helps!

  8. Hi there,

    Congratulations for your blog, its very nice.

    Im facing some trouble using your tip on fixing star rating on costumized blogs. I tried the 2 ways, but none of them worked.

    My blog adress:

    Would you pls help me getting it to work on my blog?

    Best regards from Brazil,
    David Aragon.

  9. David,
    Thanks for the comment!
    What was the problem you faced with the second method?
    Maybe you had trouble finding

    div class='post-footer-line post-footer-line-3'

    the line above which you have to put the code.

    If that was the problem then you would have to look for some proper place in the post footer.

    Also, I have made some changes to the second method. Do try it now...hope this works for you.

  10. Excellent stuff - thanks for that, was having a complete mission trying to get the ratings to appear on the blog! Your first method helped me out and it's all working now!

  11. Dan,
    Glad to be of help :)

  12. Though Blogger in Draft has a number of interesting features, I'm taking my time to incorporate them as I'm not too pleased and for a modified template they are a bit of a pain to incorporate.

    Regarding the new star ratings, I think I will stick with the ratings provided by Outbrain, as they look much better than the Blogger one and two they seem to be working fine for me. May be sometime in the near future.

  13. Hi, i have manged to get rating feature work with custom XML by your method but the place date & Post title have been interchanged.

    now it looks very odd :|

    please help

  14. Soumyadip,
    yes they are working on a number of interesting features! I think best of them is the simplest of them all: the scheduled post feature.
    Making rest of the features work for modified template is quite a task! The only real reason why I try them out is because I like to play around with my template :)
    And yes Outbrain is the simplest solution. The only down side can be the number of code lines that one has to add to template, also the server being a third party may not appeal to all.

  15. Gaurish,
    I think you have now uninstalled the feature as i can't see it on your blog.

    Anyway, I suggest you should try the second method mentioned in the post above in which you only have to add the Star code.

  16. Is it possible to add this feature into the body of a single post, rather than at the bottom of all posts.
    I would love to use it to help readers to my blog give reactions to individual whiskies that are being reviewed (rather than to the blog post itself). But this seems to be an all posts or nothing feature. Am I right?

  17. Chris,
    yes right now it is an all post or nothing feature.
    But for a your blog you take a look at the rating widget provided by outbrain

  18. Do you know anyway to make it appear below the post header,
    I tried modifying the html but it wouldn't work

  19. Sarathganesh,
    check the update in the post above. That should do it.

  20. When I try the first method, i get the following message:
    The widget with id Blog1 is not within a section (actual parent element is: div.) Every widget should be in a section.
    What am i doing wrong?

  21. Hylke,
    In the 1st Method mentioned in this post, one has to only delete a line and that resets the widget. And I recommend this method only if everything else fails to work.
    The error that you mention mostly occurs while adding the lines of code (of Method 2 or 3). In case, that's what you meant, the solution is already there in the post.
    I recommend using Method 2 or 3.
    the format should always be something like this:
    <div class='post-footer-line post-footer-line-2'>
    [code for Star Rating that always starts with <span class='star-ratings'> and end with </span> ]
    Hope that helps!

  22. Hello... I love your first method! It restored my stars AND reaction widget...

    I then read you can post stars below post title... tried it, not working. I get an error from the editor.

    Error message: Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
    XML error message: The element type "b:includable" must be terminated by the matching end-tag "".

  23. Hey Edgar! To solve that error delete </div> from the last line of 'Copy Code' of Method-3 mentioned in the post.That should fix it.

    (Updating the post with this info too)

  24. Method 3 worked a treat. Ta very much! :)

  25. Method 3 worked for us! Thank you.

    Danny & Roxanne

  26. tried method 2,and works.Thanks..


Post a Comment

I always like to hear back :)
However, irrelevant comments and irrelevant links will not be published. Needless to say, same goes for abusive comment and spam. Leaving back links related to the topic is encouraged. I know it can be tempting but try not to leave your email ids, phone nos and CVs in the comment.

Popular posts from this blog

Famous Old Faces of Doordarshan

Some people recall the faces and some people recall the names. Here are images of some of the famous readers and presenters of Doordarshan down the years. If you recognize any of them, leave a comment. [ Update 1 : Most of the faces now have names thanks to helpful comments by olio-gallimaufry ] [ Update 2 : Included image of one of the earliest presenters, Gopal Kaul. Send in generously from personal collection by son, Ashutosh Kaul. Sept, 2010.] [ Major Update 3: Got a tip-off about a documentary about the famous faces of Doordarshan from the makers   of     “The Golden Trail , DD@50 :Special feature on Golden Jubilee of Doordarshan ” from which these caps were taken. I managed to catch the incredible documentary and am adding some more faces/name and part of the docu here. New ones can be found after the image of  Narotam Puri. 30th Oct, 2010]  Pratima Puri. Believed to be the first Doordarshan reader.

Indian Cigarette Vintage Ads

He put a cigarette in his mouth and, as a matter of silent routine, offered one to Gwyn, who said ‘No thanks.”Richard looked at him.”I packed it in.”"You what?”"I stopped. Three days ago. Cold. That’s it. You just make the life choice.” Richard looked up and inhaled needfully. He gazed at his cigarette. He didn’t really want to smoke it. He wanted to eat it. Almost the only thing that he still liked about Gwyn was that he still smoked…Paradoxically, he no longer wanted to give up smoking: what he wanted to do was take up smoking. Not so much to fill the little gaps between cigarettes with cigarettes (there wouldn’t be time, anyway) or to smoke two cigarettes at once. It was more that he felt the desire to smoke a cigarette even when he was smoking a cigarette. The need was and wasn’t being met… While it would always be true and fair to say that Richard felt like a cigarette, it would now be doubly true and fair to say it. He felt like a cigarette. And he felt like a cig

Woman by Arun Kolatkar

a woman may collect cats read thrillers her insomnia may seep through the great walls of history a lizard may paralyze her a sewing machine may bend her moonlight may intercept the bangle circling her wrist a woman my name her cats the circulating library may lend her new thrillers a spiked man may impale her a woman may add a new recipe to her scrapbook judiciously distilling her whimper the city lights may declare it null and void in a prodigious weather above a darkling woman surgeons may shoot up and explode in a weather fraught with forceps woman may damn man a woman may shave her legs regularly a woman may take up landscape painting a woman may poison twenty three cockroaches - a poem by Arun Kolatkar from year 1967. Translated by Adil Jussawalla. Found it in New Writing in India (1974) ed. by Adil Jussawalla.