In this article we are going to check how to add star rating in Blogger.
Hello Guys! Welcome to Shiva Technic World in this article we are going to show you how to add a star rating in Blogger. So let's check.
Advantages of using Star Rating
You, website visitors, can rate your article and you can know how much they like your article.
How Star Rating works?
This Star Rating works with the help of widgetpack.com. It will work when visitors touch the star example visitors touched the 5th star then the article gets 5 stars if visitors touch the 4th star the article will get 4 stars.
How to add Star Rating?
- First, go to Blogger
- Then click on the Theme option
- Then you can see a down arrow near customize click on that
- Then click on Edit HTML
- Then press CTRL+F and find data:post.body
Then paste this HTML code below data:post.body
<b:if cond='data:view.isPost'>
<script>/*<![CDATA[*/ /* Star Rating Lazy load */ var lazyrs=!1;window.addEventListener('scroll',function(){(0!=document.documentElement.scrollTop&&!1===lazyrs||0!=document.body.scrollTop&&!1===lazyrs)&&(!function(){wpac_init=window.wpac_init||[],wpac_init.push({widget:'Rating',id:32139}),function(){var t,e;'WIDGETPACK_LOADED'in window||(WIDGETPACK_LOADED=!0,(t=document.createElement('script')).type='text/javascript',t.async=!0,t.src='https://embed.widgetpack.com/widget.js',(e=document.getElementsByTagName('script')[0]).parentNode.insertBefore(t,e.nextSibling))}();document.querySelector('#pRating').style.display='block';}(),lazyrs=!0)},!0); /*]]>*/</script>
</b:if>
Last words!
Hope this article will helpful to you. If you have any doubts related to this article ask me in the comment. Thanks for visiting our site!