How to Add a Directory Badge Without Slowing or Breaking Your Site
Updated
A good badge links to your listing, has fixed dimensions, loads lazily, doesn't depend on the directory's server for its image, and is present in the HTML your server sends. Most badges in the wild miss at least one of those. This checklist is built from our study of 1,910 badges on real product homepages, fetched on October 27, 2026.
We make SuperBadge, which produces this markup for you. The checklist works without it.
The markup
Here is a badge that passes every check. The directory and paths are placeholders on a reserved example domain; use the listing URL and image the directory gives you.
<a href="https://directory.example/products/your-product">
<img
src="/badges/directory-example.svg"
alt="Featured on Directory Example"
width="200"
height="54"
loading="lazy"
decoding="async"
>
</a>The checklist
- Link to your listing, not the directory. A badge says "find us here". 40.4% of badges we found linked to the directory's homepage, where the visitor has to search for you. Use the URL of your product's page.
- Set width and height. Use the image's real proportions. Without them the badge takes no space until it loads, and the page jumps; 40.2% of badge images had neither.
- Lazy-load it. Badges usually live in the footer. With
loading="lazy"the browser skips them until the visitor scrolls close. - Host the image yourself when the terms allow. 87.6% of badge images were loaded from the directory's server, so a renamed file or an outage leaves a hole on your homepage. A local copy also lets you check its size: the largest badge we found was a 368 KB SVG.
- Write alt text that names the directory. "Featured on Directory Example" works for screen readers and for anyone whose images fail. Nearly every badge we found already did this; keep it that way when you edit the snippet.
- Decide the rel value on purpose. A followed link is normal for a listing you earned;
sponsoredfits paid relationships. See should a badge link be nofollow? - Make sure it is in the server HTML. 12.1% of homepages we loaded were client-rendered shells, so their badges were invisible to anything that doesn't run JavaScript, including many directory checkers. Can bots see your badges? explains how to tell.
Check the published result
Paste-time markup is not what visitors get: themes, page builders and optimisation plugins rewrite it. After publishing, view your page source (not the inspector, which shows the page after JavaScript ran) and search for the directory's domain. Confirm the link, its rel value and the image attributes are all there.
Then click it. If it opens a 404 or the directory's front page, the badge is broken; we found that on one in seven sites with badges. Broken directory badges has a monthly check.
With SuperBadge
You paste the directory's snippet once; SuperBadge parses it into fields and renders the badge with lazy loading and async decoding, plus width and height when it has them, and keeps links followed unless you choose nofollow. You can upload the image so it is served from SuperBadge's embed host. The Next.js, Astro and WordPress snippets put badges in your server HTML, and the homepage checker confirms what a bot sees. Add your first site.
