15 Blogger's New "Reactions" Feature - How to add to customized blog templates
Friday, August 15, 2008 /

Blogger have added a new feature for us to use in our post: Reactions. This widget acts like a mini-poll beneath each of your blog posts and offers the ability for readers to leave feedback quickly.

The "Reactions" add-on is currently available through Blogger in Draft, though looks set to be moved over to the regular Blogger interface soon enough. It can be moved around like other elements in the post-footer and will adapt to the color scheme of your blog template. You can customize the buttons and labels through the "Blog Posts" widget in your dashboard if you prefer to use something different to the "funny/interesting/cool" labels which are implemented by default.

How to add "Reactions" to your Blogger template

To add this new function to your Blogger layout, you will need to activate the feature through Blogger in Draft. Once logged in to your Draft dashboard, go to Layout>Page Elements and click the "Edit" link for the "Blog Posts" widget.

In this pop-up window, you will see the option to add "Reactions" to your posts:




Tick the options box and edit the labels for your buttons as required. Then finally save this setting.

Adding the required code to your template

Depending on the type of template you are using, you will need to use one of two methods to add the required code to your template.

If you are using a default Blogger template with no modifications to widgets or the post layout...

Go to the Layout>Edit HTML page in your Blogger dashboard, and look for the "Revert Widget Templates to Default" link near the bottom of the page.

Clicking on this link will replace all of the widget templates with the updated code. All of your existing widgets will remain, so don't worry about losing any data! Instead, this will simply replace outdated code with new code, and ensure you can add all of Blogger's new features with ease.

If you use a customized/third party template...

You will need to add the required code to your template manually.

In this case, go to Layout>Edit HTML in your Blogger dashboard and check the "Expand widget templates" box.

Next, search for the following line of code (or similar):

<p class='post-footer-line post-footer-line-1'>
Immediately after this line, add the following section of code:
<span class='reaction-buttons'>

<b:if cond='data:top.showReactions'>

<table border='0' cellpadding='0' width='100%'><tr>

<td valign='center'><span class='reactions-label'>

<data:top.reactionsLabel/></span>

</td>

<td><iframe allowtransparency='true' class='reactions-iframe' expr:src='data:post.reactionsUrl' frameborder='0' name='reactions' scrolling='no'/></td>

</tr></table>

</b:if>

</span>
Preview your template to see the "Reactions" add-on appear beneath each of your blog posts, and finally, save this new addition to your template.

If you cannot find the "post-footer-line" in your blog template, search for <p><data:post.body/></p> instead, and paste the code immediately after this line.

Color Schemes for the Reactions Add-on

The colors for the reactions add-on are taken from existing variables in your color scheme:

  • Foreground: textcolor, textColor, mainTextColor


  • Highlight: linkcolor, linkColor, mainLinkColor

This is to ensure that the color matches the overall scheme of your blog. So if you change the color scheme through the Fonts and Colors section, the colors of your reactions will change too.

To learn more about this new feature, be sure to read the announcement post on Blogger in Draft. Please let me know if there's anything else you need to know about this new feature by leaving your comments below.


15 comments:

February 8, 2009 at 3:24 AM Laptop Kid said...

in picture above its show the checkbox "Show Star Ratings" can you tell me how to add that future.

Thanks

February 13, 2009 at 1:38 PM skar said...

man, I get the tick boxes, but the names don't appear, there's no cool or funny etc :( why?

February 13, 2009 at 3:40 PM Dataceptionist said...

thanks so much Amanda you're the best! I've been trying to figure out how to add this without losing my customisation. You're a lifesaver!

March 2, 2009 at 2:32 AM Mon said...

I have a 3rd party template and I cannot change my color scheme so that the reaction links show up. They are black and I can't find anything in my html that indicates black (my links are white). Is there any way to custmise the font for the reactions only?

Love your blog!

April 29, 2009 at 5:20 AM Ta said...

Nice post. Thanks for sharing this blog.

May 24, 2009 at 5:21 AM prabin said...

how to manage three column templete?? i have added three column templete but i got problem in posting new post i did not find from where to go in add new
post

June 6, 2009 at 4:33 AM Debor@h said...

Thank you so much!!!!

June 7, 2009 at 2:36 AM Shariq said...

Not showing betterly

please check the problem at www.linkextreme.blogspot.com
Please reply to me there only.

June 10, 2009 at 12:55 AM Py said...

Thank A lot, i was searching for it and i got it from your blog.

Please Visit: http://www.py4php.blogspot.com

Please Visit: http://www.piyushsaraf.com

June 28, 2009 at 4:47 PM
Anonymous said...

Shame this feature doesnt work on your own template at ThemeForest called 'Planet Play'.
Maybe if you supported your products I wouldn't have posted this comment here.

July 12, 2009 at 9:54 AM
Providence Blogger said...

I want to change the color of the Funny, Interesting,Cool, it's a gray color :( The Reaction word it's in white which is good, but the rest it's gray. Can you please help me, I want to have white color all of the words.

Thank you for your help.

You can check it out: www.providenceblogger.com

July 12, 2009 at 9:55 AM
Anonymous said...

I want to change the color of the Funny, Interesting,Cool, it's a gray color :( The Reaction word it's in white which is good, but the rest it's gray. Can you please help me, I want to have white color all of the words.

Thank you for your help.

You can check it out: www.providenceblogger.com

July 12, 2009 at 9:55 AM
Providence Blogger said...

I want to change the color of the Funny, Interesting,Cool, it's a gray color :( The Reaction word it's in white which is good, but the rest it's gray. Can you please help me, I want to have white color all of the words.

Thank you for your help.

You can check it out: www.providenceblogger.com

July 16, 2009 at 5:59 AM Rosie said...

Hi Amanda... d'you know if there's an equivalent for wordpress blogs?

Cheers,
Rosie

August 11, 2009 at 1:17 PM uoduckie said...

If you react can the poster see who is voting?

Post a Comment