If you are interested in adding the star rating widget on your Blogger blog, then you just came at the right place. Today on this post, we will show you how to add start rating widget to Blogger. So, follow the steps below to implement it on your blog.
If you have been using the Blogger platform, then there must have been a time when you started looking for a way to add the rating option to your posts.
Unlike WordPress which has numerous star rating plugins you can install from the plugin store, Blogger doesn't! But does that mean you cannot have a star rating option for your Blogger blog or web site? The answer is hell NO!.
If you are interested in adding the star rating widget on your Blogger blog, then you just came at the right place. Today on this post, we will show you how to add start rating widget to Blogger. So, follow the steps below to implement it on your blog.
Why you need star rating on your blog
Experiments have shown that many visitors always find it difficult to write comments. Since most find it time-consuming, it will be much easier for them to express their opinion about your content by simply pushing a button.
In this light, the star rating widget will now come to play. Your audience will find it easier to express their opinion rather than taking a longer time rating long comments.
Also, the rating average of each post can show it's quality to other visitors and encourage them to see it. So, using a simple star rating gadget for Blogger can give you many benefits and make your blog more attractive.
Read also: How to add table of content to Blogger
Adding the star rating to Blogger: Prerequisites.
Before you implement the code we will give you here, there are some things you will need to do first.
For this star rating system, we will be making use of Widgetpack. They give you the possibility of creating a star rating widget and implementing it on your Blogger blog.
So, you will first need to do the following;
- Go to the Widgetpack website and Signup for a new account.
- Once you have done that, you will be presented the comment widget code. This is not what you need. Just go to the menu(three bars at the top-left corner).
- On the menu options, scroll down and click on "Rating" then" install".
- You will then see the rating widget code presented. Copy only the JavaScript part of the code. That is the portion <script type="text/javascript">....</script>.
- Now, go to your Blogger dashboard, select the blog you wish to add the widget, go to Theme > Edit HTML. Click anywhere inside the HTML code area and press "CTRL + F", then search for the closing body tag(</body>) and paste the JavaScript you copied from the Widgetpack site before it.
- You can customise how the stars will look like on the Widgetpack site by going to Menu > Rating > Setting. There, change the vote option to "Device (Cookies)" so that visitors will not have to sign in in order to rate. There, you can equally customise the star colour and size.
Once you have added the script on your blog and customised the star rating, it is time to make it appear on your blog. We will be making it show at the end of every blog post automatically like the one we have on 237 Solution.
Adding the star rating widget to your blog.
The star rating code which you will see on the Widgetpack site works fine but what we have done is add a little tweaking so that implementing will be easier.
Normally, you could just copy it and paste. But since you won't be pasting it in just one area in the HTML of your blog theme, you will, therefore, keep pasting the same JavaScript four to five times. And you all know the effect of so many JS.
So, once you have added the script before the closing body tag, copy this HTML code and search for every <data:post.body/> tag and paste after it. You may find the tag 3 to five times depending on your template.
Star rating HTML code to be added after every <data:post.bbody/>:
1 2 3 4 | <div id="ratings" style="width:96%; height:100px; text-align:center; border:3px solid #e6e4df; margin:0 auto; margin-top:10px"> <h4>Ratings:</h4> <p id="wpac-rating"/> </div> |
Afer adding the HTML div tag(container) save theme.
Et voilà !!!!
There you go!!!
Conclusion
By following the steps above, you should be able to add a star rating widget to you Blogspot(Blogger site) which will automatically appear at the end of every single post you have on your blog.
This post is open for discussion and everyone is free to share his or her thoughts.
COMMENTS