Docs › Hugo
Add a testimonial wall to Hugo
Add a Vouchjar testimonial wall to a Hugo site with a two-line shortcode.
You’ll need a Vouchjar wall. It’s free for up to 5 testimonials: create one, then copy the embed code from step 3 of your dashboard. It already has your wall’s ID in place of your-wall.
Want layout tips and a comparison with the alternatives? Read the full guide: Hugo testimonials shortcode.
<div data-vouchjar="{{ .Get "wall" }}"></div>
<script src="https://vouchjar.com/embed.js" async></script> {{< vouchjar wall="your-wall" >}} Steps
- Create the shortcode file below. Hugo 0.146 and later read shortcodes from
layouts/_shortcodes/. Older versions uselayouts/shortcodes/. - In any content file, call the shortcode with your wall’s ID.
- Rebuild and deploy.
What you’ll get
This is the real widget running the demo wall. Yours shows the testimonials you approve.
<div data-vouchjar="your-wall" data-layout="carousel" data-theme="auto"></div>
<script src="https://vouchjar.com/embed.js" async></script> Example quotes. Want to try the collection form as well? Use the homepage demo.
Checked against Hugo’s own help docs: gohugo.io