tharu.lk

Widgets

Put your reviews on your own site.

Copy a snippet, paste it into your page. Works on WordPress, Shopify, Wix, Webflow, Blogger, or hand-written HTML, anywhere you can paste code. Your rating updates itself.

Step 1, add this once

Paste this anywhere on your site, ideally just before the closing </body> tag. On WordPress it goes in Appearance → Theme File Editor, or any "custom code" box your theme provides.

<script src="https://cdn.tharu.lk/w.js" async></script>

Step 2, pick a widget

Paste the snippet exactly where you want it to appear. Everything below is live, this is what your visitors will see.

Rating badge

data-tharu="badge"

Small and quiet. Good for a footer, a sidebar, or next to a checkout button.

<div data-tharu="badge" data-business="your-business"></div>

Score card

data-tharu="stars"

Your headline number. Works well at the top of a homepage or a landing page.

<div data-tharu="stars" data-business="your-business"></div>

Review list

data-tharu="list"

Shows the actual reviews. The coloured edge on each card tells the visitor where the review came from, and the star colour tells them the score at a glance.

<div data-tharu="list" data-business="your-business" data-count="3"></div>

Review grid, dark

data-theme="dark"

Two columns on desktop, one on mobile. Use the dark theme when your site has a dark background.

<div data-tharu="grid" data-business="your-business" data-count="4" data-theme="dark"></div>

Sinhala

data-lang="si"

Set the language and the widget's own labels change. Reviews stay in whatever language they were written in.

<div data-tharu="stars" data-business="your-business" data-lang="si"></div>

All options

Add any of these to the widget div.

AttributeValuesWhat it does
data-tharubadge, stars, list, gridWhich widget to show
data-businessyour slugRequired. Found in your dashboard
data-count1–10How many reviews. List and grid only
data-themelight, darkMatch your site's background
data-langen, si, taLanguage of the widget's own labels
data-sourceall, google, tharuShow only reviews from one place