A Shopify testimonials section without an app: code, layout choice and honesty rules
Testimonials you've collected and chosen can live in a theme section with no monthly fee. Whether that's enough depends on one thing: do you also need your customers to submit them?
Key takeaways
- A grid shows every testimonial at once. Choose a carousel only when space is short, and then don't make it advance on its own unless it can be paused.
- A section is the right tool when you pick and type testimonials yourself. Collecting reviews, verifying buyers and emailing customers takes an app.
- Only publish words real customers said about a product they really used. Fake reviews are banned outright in the US and the EU.
- Don't add review structured data to home-page testimonials about your own shop. Star snippets are for a specific product, with the reviews visible on that page.
First, check that you want a section at all
A section is a display. It can't email customers after delivery, take a submission, mark a buyer as verified on its own, moderate photos or submit reviews to Google. If you want reviews on every product and you have regular orders, that's a real backend job, so use an app. The section approach fits a store with a handful of great quotes, a press or expert page, or a landing page that shouldn't load a review widget. Many stores do both: an app on product pages, and a hand-picked section on the home page. App or custom section goes further into that choice.
If a section fits: grid or carousel
| Grid | Carousel | |
|---|---|---|
| What the shopper sees | All of them, by scrolling normally | Usually one to three, and the rest only if they act |
| Best for | A few strong quotes, a dedicated reviews page | A narrow band on a busy home or product page |
| On a phone | A long stack, so keep it to about six | A swipe, which comes naturally |
| Accessibility work | Almost none | Buttons, keyboard, pausing if it moves |
| Risk | Takes up height | Most quotes are never read |
A grid is the safer default, because a testimonial nobody sees persuades nobody. Use a carousel when you truly have limited height. If it moves on its own for more than five seconds, WCAG asks for a way to pause it. The section below does both layouts from one setting and doesn't autoplay at all, so you can try each on your own page. Swiping and the scroll position are handled by the browser's native CSS scroll snapping, which keeps the JavaScript to a few lines.
The complete section
<section id="tst-{{ section.id }}" class="tst tst--{{ section.settings.layout }}" aria-labelledby="tst-title-{{ section.id }}">
<div class="tst__top">
<h2 class="tst__heading" id="tst-title-{{ section.id }}">{{ section.settings.heading | escape }}</h2>
{%- if section.settings.layout == 'carousel' and section.blocks.size > 1 -%}
<div class="tst__nav">
<button type="button" class="tst__arrow" data-tst-step="-1" aria-controls="tst-track-{{ section.id }}">
<span aria-hidden="true">←</span><span class="tst__sr">{{ section.settings.prev_label | escape }}</span>
</button>
<button type="button" class="tst__arrow" data-tst-step="1" aria-controls="tst-track-{{ section.id }}">
<span aria-hidden="true">→</span><span class="tst__sr">{{ section.settings.next_label | escape }}</span>
</button>
</div>
{%- endif -%}
</div>
<div class="tst__track" id="tst-track-{{ section.id }}" {% if section.settings.layout == 'carousel' %}tabindex="0" role="group" aria-label="{{ section.settings.heading | escape }}"{% endif %}>
{%- for block in section.blocks -%}
<figure class="tst__card" {{ block.shopify_attributes }}>
{%- if block.settings.show_stars -%}
<p class="tst__stars" aria-label="{{ section.settings.stars_label | replace: '[rating]', block.settings.rating | escape }}">
<span aria-hidden="true">
{%- for star in (1..5) -%}
{%- if star <= block.settings.rating -%}★{%- else -%}☆{%- endif -%}
{%- endfor -%}
</span>
</p>
{%- endif -%}
<blockquote class="tst__quote">{{ block.settings.quote | escape | newline_to_br }}</blockquote>
<figcaption class="tst__who">
{%- if block.settings.photo != blank -%}
{{ block.settings.photo | image_url: width: 96 | image_tag: loading: 'lazy', width: 48, height: 48, alt: '', class: 'tst__photo' }}
{%- endif -%}
<span>
<span class="tst__name">{{ block.settings.author | escape }}</span>
{%- if block.settings.detail != blank -%}
<span class="tst__detail">{{ block.settings.detail | escape }}</span>
{%- endif -%}
{%- if block.settings.product != blank -%}
<a class="tst__product" href="{{ block.settings.product.url }}">{{ block.settings.product.title | escape }}</a>
{%- endif -%}
</span>
</figcaption>
</figure>
{%- endfor -%}
</div>
</section>
<style>
#tst-{{ section.id }} { max-width: 1200px; margin: 0 auto; padding: {{ section.settings.padding }}px 20px; }
#tst-{{ section.id }} .tst__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
#tst-{{ section.id }} .tst__heading { margin: 0; }
#tst-{{ section.id }} .tst__nav { display: flex; gap: 8px; }
#tst-{{ section.id }} .tst__arrow { width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; background: none; color: inherit; font-size: 18px; cursor: pointer; }
#tst-{{ section.id }} .tst__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#tst-{{ section.id }} .tst__card { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 24px; border: 1px solid rgba(127,127,127,.3); border-radius: 12px; background: {{ section.settings.card }}; color: {{ section.settings.ink }}; }
#tst-{{ section.id }} .tst__stars { margin: 0; color: {{ section.settings.star }}; letter-spacing: 2px; }
#tst-{{ section.id }} .tst__quote { flex: 1; margin: 0; padding: 0; border: 0; font-size: 16px; line-height: 1.5; font-style: normal; }
#tst-{{ section.id }} .tst__who { display: flex; align-items: center; gap: 12px; font-size: 14px; }
#tst-{{ section.id }} .tst__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
#tst-{{ section.id }} .tst__name { display: block; font-weight: 600; }
#tst-{{ section.id }} .tst__detail, #tst-{{ section.id }} .tst__product { display: block; color: inherit; }
#tst-{{ section.id }} :is(a, button, .tst__track):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#tst-{{ section.id }}.tst--grid .tst__track { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
#tst-{{ section.id }}.tst--carousel .tst__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
#tst-{{ section.id }}.tst--carousel .tst__card { flex: 0 0 min(85%, 380px); scroll-snap-align: start; }
</style>
<script>
(function () {
// Delegated from the document once, so it keeps working when the theme editor re-renders the section.
if (window.testimonialsReady) return;
window.testimonialsReady = true;
var calm = window.matchMedia('(prefers-reduced-motion: reduce)');
function how() { return calm.matches ? 'auto' : 'smooth'; }
document.addEventListener('click', function (e) {
var btn = e.target.closest('[data-tst-step]');
if (!btn) return;
var track = document.getElementById(btn.getAttribute('aria-controls'));
var card = track && track.querySelector('.tst__card');
if (!card) return;
var gap = parseFloat(getComputedStyle(track).columnGap) || 0;
track.scrollBy({ left: (card.offsetWidth + gap) * Number(btn.dataset.tstStep), behavior: how() });
});
// In the editor, selecting a testimonial brings it into view.
document.addEventListener('shopify:block:select', function (e) {
if (!e.target.classList || !e.target.classList.contains('tst__card')) return;
e.target.scrollIntoView({ behavior: how(), block: 'nearest', inline: 'start' });
});
})();
</script>
{% schema %}
{
"name": "Testimonials",
"tag": "div",
"max_blocks": 12,
"settings": [
{ "type": "text", "id": "heading", "label": "Heading", "default": "What customers say" },
{
"type": "select",
"id": "layout",
"label": "Layout",
"options": [
{ "value": "grid", "label": "Grid" },
{ "value": "carousel", "label": "Carousel" }
],
"default": "grid"
},
{ "type": "text", "id": "prev_label", "label": "Previous button (for screen readers)", "default": "Previous testimonial" },
{ "type": "text", "id": "next_label", "label": "Next button (for screen readers)", "default": "Next testimonial" },
{ "type": "text", "id": "stars_label", "label": "Star rating (for screen readers)", "default": "[rating] out of 5 stars", "info": "[rating] is replaced with the number." },
{ "type": "color", "id": "card", "label": "Card background", "default": "#ffffff" },
{ "type": "color", "id": "ink", "label": "Card text", "default": "#1c1c1c" },
{ "type": "color", "id": "star", "label": "Stars", "default": "#a15c00" },
{ "type": "range", "id": "padding", "label": "Vertical padding", "min": 0, "max": 100, "step": 4, "unit": "px", "default": 48 }
],
"blocks": [
{
"type": "testimonial",
"name": "Testimonial",
"settings": [
{ "type": "textarea", "id": "quote", "label": "Their words", "default": "Paste a real customer's words here, with their permission.", "info": "Use what the customer really said. Trim for length without changing the meaning." },
{ "type": "text", "id": "author", "label": "Name", "default": "Customer name", "info": "Ask how they want to be named. A first name and initial is common." },
{ "type": "text", "id": "detail", "label": "Detail", "info": "For example, a city, or how long they've been a customer." },
{ "type": "image_picker", "id": "photo", "label": "Photo", "info": "Only a photo they gave you permission to use." },
{ "type": "product", "id": "product", "label": "Product they bought" },
{ "type": "checkbox", "id": "show_stars", "label": "Show their star rating", "default": false },
{ "type": "range", "id": "rating", "label": "Their rating", "min": 1, "max": 5, "step": 1, "default": 5 }
]
}
],
"presets": [
{
"name": "Testimonials",
"blocks": [
{ "type": "testimonial" },
{ "type": "testimonial" },
{ "type": "testimonial" }
]
}
]
}
{% endschema %}Notes for anyone adapting it. The default quote says "Paste a real customer's words here" on purpose: invented sample praise in a preset has a way of going live. The delegated click listener is why the buttons survive a `shopify:section:load`, since nothing is bound to the nodes the editor replaces. Stars default to off because a star rating you typed for a quote that came by email is a number nobody actually gave. Install it with the usual steps.
The rules on real reviews
Testimonials are advertising, and regulators treat them as such. This is general information, so check with an adviser for your own store, but the main points are widely shared:
- In the US, the FTC's rule on consumer reviews and testimonials, in force since October 2024, bans fake reviews and testimonials, including ones attributed to people who don't exist or who never used the product, and it allows civil penalties.
- In the EU, claiming that reviews come from real customers without taking reasonable steps to check is a banned practice under consumer law, and a shop that shows reviews has to say whether and how it checks them.
- If someone got a discount, a free product or payment in return for a testimonial, that connection has to be disclosed.
- Editing for length is fine, as long as the meaning stays. Combining several people's words into one quote isn't.
- Keep the email or message where each quote came from, and ask permission before using a name or a photo. A line in your own records costs nothing and answers any question later.
Selection matters as well. It's normal to feature favorites, but an average computed only from favorites isn't your store's average, so don't present it as one. Review Cards Grid, shown here, works out an average from the cards in the section and has a setting to hide it. Hide it unless the cards really are all your reviews.

Review structured data: mostly, leave it out
Merchants often ask how to get stars in Google from a testimonial section. For most of these sections, the answer is that you shouldn't try. Google's review snippet guidelines say a business that controls its own reviews isn't eligible for stars on Organization or LocalBusiness markup, including through embedded widgets. So a home-page band of quotes praising your shop gets no benefit, and marking it up breaks the guidelines.
Products are eligible. The markup must describe one specific product, ratings have to come directly from users, and the rating and reviews have to be visible on that page. Multiple individual reviews should come with an aggregate rating too. Google's page is the source to read before you ship anything here. A review app usually outputs this for you, so check for a duplicate. If your app fills Shopify's standard reviews.rating metafield, the way Dawn's product cards read it, you can add the aggregate yourself on a product template:
{%- assign rating = product.metafields.reviews.rating.value -%}
{%- assign count = product.metafields.reviews.rating_count.value -%}
{%- if rating != blank and count > 0 -%}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": {{ product.title | json }},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": {{ rating.rating | json }},
"bestRating": {{ rating.scale_max | json }},
"ratingCount": {{ count | json }}
}
}
</script>
{%- endif -%}Only do this if those figures also show on the page. Dawn's own structured_data output for a product doesn't include a rating in Shopify's documented example, so this adds a second Product entry beside it. Test the page with Google's Rich Results Test before relying on it, and remember that valid markup doesn't guarantee stars will appear.
Two more layouts worth seeing

Have plenty of reviews and want them all visible? Review Wall (€4, or €3 with a plan) sets them in three endless columns beside a rating summary, with filters that work. You type its reviews or figures into the section, so the honesty rules above still apply to what you enter.
Questions, answered
How do I add testimonials to Shopify without an app?
Add a section file to your theme with one block per testimonial, as in the code above, then fill in the blocks in the theme editor. Dawn has no dedicated testimonial section, though Multicolumn can hold simple quotes.
Is it legal to write my own testimonials?
Not if you present them as coming from customers. Fake testimonials are prohibited by the FTC's rule in the US and by consumer law in the EU. Use real customers' words with their permission, and disclose anything they received in exchange.
Will testimonials give my store star ratings on Google?
Usually not. Stars on a business's own Organization or LocalBusiness markup aren't eligible when the business controls the reviews. Product pages are eligible with visible reviews from users and correct markup, and even then Google doesn't guarantee them.
Are carousels bad for testimonials?
They hide most of the content, and auto-moving ones cause accessibility problems unless they can be paused. A swipeable carousel that moves only when asked is fine where height is limited. Otherwise, a grid is a safer choice.
Can a testimonials section collect reviews from customers?
No. A theme section displays what's typed into it. Collecting submissions and verifying buyers takes a form with a backend, which is what review apps provide.