
2000+ people voted
A specialized feedback widget that simulates social proof by displaying a high volume of votes and an interactive satisfaction progress bar. It allows users to 'Like' or 'Dislike' a product, updating the percentage bar in real-time with smooth CSS transitions.
- Animated satisfaction progress bar
- Real-time interaction via vanilla JavaScript
- Integrated social proof messaging (2000+ votes)
- Mobile-responsive design with contained layout
- Unique CSS class names to prevent style conflicts
- On the product page to build customer confidence through perceived popularity.
- In the footer or sidebar to gather quick sentiment feedback from visitors.
- Most Shopify themes
The code
1<!DOCTYPE html>2<html lang="en">3<head>4<meta charset="UTF-8">5<meta name="viewport" content="width=device-width, initial-scale=1.0">6<title>Feedback Section</title>7<style>8 body.unique-feedback-body-Xyz123 {9 background-color: #f0f0f0; /* Açık arka plan rengi */10 color: #333;11 font-family: Arial, sans-serif;12 display: flex;13 justify-content: flex-start; /* Sola hizalama */14 align-items: center;15 height: 100vh;16 margin: 0;17 padding-left: 20px; /* Soldan biraz boşluk */18 }1920 .unique-feedback-container-Abc456 {21 background-color: #fff;22 padding: 10px 20px;23 border-radius: 10px;24 text-align: center;25 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Hafif gölge efekti */26 max-width: 100%; /* Mobil ve masaüstü cihazlar için uyumlu genişlik */27 width: 500px; /* Maksimum genişlik */28 margin: 2px auto; /* Yukarı ve aşağı 2px boşluk */29 }3031 .unique-feedback-question-Def789 {32 font-size: 14px; /* Font boyutu küçültüldü */33 margin-bottom: 10px;34 display: flex;35 align-items: center;36 justify-content: flex-start;37 border-left: 5px solid green; /* Sol tarafta yeşil çizgi */38 padding-left: 10px;39 background-color: #f9f9f9; /* Hafif gri arka plan */40 border-radius: 5px;41 padding: 5px 10px; /* İçerik ile kenar arasındaki boşluk */42 }4344 .unique-thumbs-up-icon-Ghi012 {45 color: green;46 margin-right: 5px;47 font-size: 14px; /* Emoji ve metin boyutları eşitlendi */48 }4950 .unique-feedback-buttons-Jkl345 {51 display: flex;52 justify-content: space-between;53 gap: 10px;54 margin-bottom: 10px;55 }5657 .unique-feedback-button-Mno678 {58 padding: 8px 15px; /* Buton padding azaltıldı */59 border: none;60 border-radius: 5px;61 cursor: pointer;62 font-size: 14px; /* Font boyutu */63 flex-grow: 1;64 background-color: #e0e0e0; /* Açık buton rengi */65 color: #333; /* Metin rengi */66 transition: transform 0.1s ease-in-out; /* Animasyon efekti */67 }6869 .unique-feedback-button-Mno678:active {70 transform: scale(1.1); /* Butona tıklama animasyonu */71 }7273 #unique-like-button-Pqr901, #unique-dislike-button-Stu234 {74 background-color: #e0e0e0; /* Açık buton rengi */75 color: #333; /* Metin rengi */76 }7778 .unique-feedback-progress-Vwx567 {79 background-color: #ddd;80 border-radius: 5px;81 height: 15px; /* Yükseklik azaltıldı */82 overflow: hidden;83 margin-bottom: 10px;84 width: 100%;85 display: flex;86 align-items: center;87 }8889 .unique-progress-bar-Yza890 {90 background-color: green; /* Progress bar rengi yeşil */91 height: 100%;92 width: 85%; /* Default olarak %85'den başlayacak */93 text-align: center;94 line-height: 15px; /* Yükseklik ile uyumlu */95 color: white; /* Metin rengi beyaz */96 font-weight: bold;97 font-size: 12px; /* Font boyutu küçültüldü */98 transition: width 0.5s ease-in-out; /* Animasyon efekti */99 }100101 .unique-feedback-percentage-Bcd123 {102 font-size: 14px;103 display: none;104 }105106 .unique-feedback-votes-Efg456 {107 font-size: 12px;108 color: #666;109 margin-top: 10px;110 }111</style>112</head>113<body class="unique-feedback-body-Xyz123">114 <div class="unique-feedback-container-Abc456">115 <div class="unique-feedback-question-Def789">116 <span class="unique-thumbs-up-icon-Ghi012">👍</span>117 Did you like the product?118 </div>119 <div class="unique-feedback-buttons-Jkl345">120 <button class="unique-feedback-button-Mno678" id="unique-like-button-Pqr901">Like</button>121 <button class="unique-feedback-button-Mno678" id="unique-dislike-button-Stu234">Dislike</button>122 </div>123 <div class="unique-feedback-progress-Vwx567">124 <div class="unique-progress-bar-Yza890" id="unique-progress-bar-Yza890">85%</div>125 </div>126 <p class="unique-feedback-percentage-Bcd123" id="unique-feedback-percentage-Bcd123">85%</p>127 <p class="unique-feedback-votes-Efg456">2000+ people have voted</p>128 </div>129 <script>130 const likeButtonUnique = document.getElementById('unique-like-button-Pqr901');131 const dislikeButtonUnique = document.getElementById('unique-dislike-button-Stu234');132 const progressBarUnique = document.getElementById('unique-progress-bar-Yza890');133 const feedbackPercentageUnique = document.getElementById('unique-feedback-percentage-Bcd123');134135 let likesUnique = 85;136 let dislikesUnique = 15;137138 function updateProgressBarUnique() {139 const totalUnique = likesUnique + dislikesUnique;140 const percentageUnique = totalUnique === 0 ? 0 : (likesUnique / totalUnique) * 100;141 progressBarUnique.style.width = percentageUnique + '%';142 progressBarUnique.textContent = Math.round(percentageUnique) + '%';143 feedbackPercentageUnique.textContent = Math.round(percentageUnique) + '%';144 }145146 likeButtonUnique.addEventListener('click', () => {147 likesUnique++;148 updateProgressBarUnique();149 });150151 dislikeButtonUnique.addEventListener('click', () => {152 dislikesUnique++;153 updateProgressBarUnique();154 });155156 // Initialize progress bar with animation157 setTimeout(() => {158 updateProgressBarUnique();159 }, 100);160 </script>161</body>162</html>
How to install 2000+ people voted on your Shopify theme
This snippet belongs in sections/main-product.liquid, directly under the Add to cart button, where it reinforces the purchase decision. Expect the whole job to take about 5–10 minutes.
- 1From your Shopify admin, open Online Store → Themes, click the … button on your live theme and choose Duplicate. Always work on a copy so you can roll back instantly.
- 2On the duplicated theme, click … → Edit code to open the theme code editor.
- 3Open sections/main-product.liquid in the file tree. If your theme uses different file names, search for the template that renders the area where you want the block to show up.
- 4Click Copy code on this page, then paste the snippet directly under the Add to cart button, where it reinforces the purchase decision.
- 5The snippet ships with its own scoped
<style>block, so you do not need to touchbase.cssortheme.css. If you prefer to keep CSS centralised, move the contents of the style tag into your theme stylesheet and delete the inline block. - 6Keep the
<script>tag at the end of the snippet. It only runs once the surrounding markup exists in the DOM, so moving it higher up the file can break the behaviour. - 7Click Save, then hit Preview and check the block on desktop, tablet and mobile widths.
- 8When you are happy with the result, publish the duplicated theme from Online Store → Themes → Actions → Publish.
How to customise it
Every value below lives inside the snippet, so you can adapt 2000+ people voted to your brand without touching the rest of the theme.
- Colours — the snippet uses
#f0f0f0,#333,#fff,#f9f9f9. Replace those values inside the style block with your brand palette, keeping at least a 4.5:1 contrast ratio between text and background so the block stays accessible. - Typography — the block declares
font-family: Arial, sans-serif. Delete that line to inherit your theme font instead, which usually looks better integrated. - Sizing — adjust the font-size values (14px, 12px) and the padding so the block carries the same visual weight as the elements around it.
- Corners —
border-radius: 10pxcontrols the roundness. Set it to 0 for a sharper editorial look, or increase it for a softer, app-like feel. - Copy — rewrite the hard-coded text (for example “Feedback Section”) in your own brand voice, and translate it if you sell in more than one language.
Common mistakes to avoid
These are the issues merchants run into most often when installing a snippet like this one.
- Editing the live theme directly. Duplicate it first — a single unbalanced Liquid tag can take a storefront down mid-campaign.
- Pasting the code into the wrong file. Dropped into
layout/theme.liquidinstead ofsections/main-product.liquid, this block will render on every page of the store, including ones where it makes no sense. - Renaming the CSS classes in the markup but not in the style block, or vice versa. The class names have to match exactly or the styling silently disappears.
- Adding the snippet twice on the same page. The script targets its selector, so two copies can conflict or double-fire.
- Publishing without testing on a real phone. Most Shopify traffic is mobile, and layout problems almost always surface there first.
Performance notes
What this block costs you in load time, and how to keep that cost at zero.
- The CSS is inline and scoped to this block, so it adds no extra network request. At a few kilobytes it has no measurable effect on your Lighthouse score.
- The JavaScript is vanilla — no jQuery, no external library, no additional request. Keep it after the markup so it never blocks rendering.
- Run PageSpeed Insights before and after you add the block so you have a concrete number rather than a guess.
SEO & accessibility
How to add this block without damaging your on-page structure or your rich results.
- Nothing in this snippet should replace your page
<h1>. Keep product and page headings intact and use<h2>or<h3>for the block's own heading so the document outline stays clean. - If the block shows review or rating content, keep it consistent with the structured data your review app already outputs. Duplicating or contradicting rating markup can cost you the rich result entirely.
- The block does not create a new URL, so there is no canonical or indexing change to make. It improves on-page engagement signals rather than crawlability.
2000+ people voted — questions merchants ask
Will this snippet work with my theme?
It is built with standard Liquid, HTML and CSS, so it works with Dawn and virtually every Online Store 2.0 theme, as well as most vintage themes. The only thing that changes between themes is the file you paste it into — if yours has no sections/main-product.liquid, look for the equivalent template that renders the same area.
Do I need an app to use it?
No. This is theme code you own outright: no monthly fee, no third-party script tag, and no app that can break your storefront the next time it updates.
How long does it take to add “2000+ people voted” to a store?
Most merchants have it live in under fifteen minutes — duplicate the theme, paste the code, adjust the colours and copy, preview on mobile, publish.
The block appears but nothing happens. What is wrong?
That is almost always a script-order problem. Check that the script tag is still at the bottom of the snippet and that the markup was not pasted inside another script or a Liquid comment block. Open your browser console and look for an error naming the snippet's selector.
The styling looks broken after pasting. How do I fix it?
Confirm you copied the whole snippet including the closing style tag, then check whether one of your theme's own CSS rules is overriding it. If a theme rule wins, increase the specificity of the snippet's selector rather than scattering !important through the file.
Will it slow my store down?
Not meaningfully. It is inline markup with scoped CSS and at most a few lines of vanilla JavaScript — no external libraries, no extra HTTP request. Optimising your product images will always have a far bigger impact on load time.
Can I use it on a client store or a commercial project?
Yes. Every snippet in the MCO Hub library is free to copy, modify and ship on any store, including client work. Attribution is appreciated but not required.
Related snippets
Keep exploring
Guides
Tools
Deals & Discounts



