Skip to content

WordPress integration

Add a Verified Trust Badge to Your WordPress Site

WordPress gives you a few clean ways to put the Entruv badge in your footer, and the right one depends on your theme. Block themes use the Site Editor. Classic themes use a footer widget area. Either way you paste one line of HTML into a Custom HTML block or widget. The tricky parts are caching plugins and image optimisers, which can serve an old page or change the badge image. This guide covers both routes and those traps.

RequirementYou need a WordPress admin login, and your own site, not a free hosted plan that blocks custom HTML.

  1. Step 1

    Find your footer

    If you use a block theme, go to Appearance, then Editor, and open the footer through Patterns, Footer, or by clicking the footer in the preview. If you use a classic theme, go to Appearance, then Widgets, and look for a footer widget area. Editing the footer template applies site wide, so one change covers every page. Menu labels vary between versions and themes, so look for the closest match.

  2. Step 2

    Insert a Custom HTML block or widget

    In the editor, use the block inserter to add a Custom HTML block inside the footer. In Widgets, add a Custom HTML widget to the footer area. Paste this line: <a href="https://entruv.com/p/YOUR-SLUG" target="_blank" rel="noopener"><img src="https://entruv.com/api/badge/YOUR-SLUG.svg" alt="Listed on Entruv" height="44" style="height:44px;width:auto;max-width:100%" /></a> Do not retype it. Copy the ready made version from your Entruv owner panel, which already has your real slug. Press Save or Update. Prefer a plugin such as WPCode, or a child theme footer.php, only if the footer will not take HTML.

  3. Step 3

    Clear the cache, then verify your domain

    If you run a cache or CDN plugin, clear it so visitors and our crawler get the new page. Open your home page in a private window and check the badge shows. Then open your Entruv private link and press Verify Domain & Publish. Success looks like a confirmation on the owner panel and a public record page that no longer returns 404. If it fails, read the message and use the fixes below.

The one line you paste

<a href="https://entruv.com/p/YOUR-SLUG" target="_blank" rel="noopener"><img src="https://entruv.com/api/badge/YOUR-SLUG.svg" alt="Listed on Entruv" height="44" style="height:44px;width:auto;max-width:100%" /></a>

Copy the ready made version from your owner panel. It already has your real address in place of YOUR-SLUG.

If the check fails on WordPress

  • A page cache or CDN plugin can keep serving the old page. Purge the cache, and the CDN cache too if you use one, before pressing Verify Domain & Publish.
  • Optimisation or lazy loading plugins can replace the image src with a placeholder. The img must stay a normal img with the real src address, so exclude the badge from lazy loading.
  • Security plugins or editor roles may strip an img tag or the target attribute from Custom HTML. If the saved code looks different, check the plugin settings or use an administrator account.
  • A footer widget area can be hidden on some page templates. Check the exact home page you gave Entruv, in a private window, and not only a blog post.
  • If you edit footer.php directly, a theme update can wipe your change. Use a child theme so the badge survives updates.

Block theme or classic theme

Block themes treat the footer as a template part you edit in the Site Editor. A Custom HTML block placed there appears on every template that uses that footer. Classic themes work through widget areas, and the theme decides which areas exist, so the footer widget area name and position change from theme to theme. Some themes offer several footer areas, and any visible one will do.

If neither route works, a snippet plugin such as WPCode can inject code in the footer, and a child theme footer.php is the manual option. Always pick a child theme there, because the parent theme file is replaced when the theme updates.

Check the image after caching and lazy loading

WordPress sites often run several plugins that rewrite the page after you save it. A lazy loader may swap the real image address for a tiny placeholder and load the true image with JavaScript. Our crawler does not run JavaScript, so it would see the placeholder and the check would fail.

The test takes a minute. Open your live page, choose View page source, and search for entruv.com. You should see the anchor, and an img whose src is exactly https://entruv.com/api/badge/ followed by your slug and .svg. If the src is different, exclude the badge in your optimisation plugin and clear the cache. Then test again from a private window so you are not looking at a logged in view.

Questions

Do I need a plugin to add the badge?

No. A Custom HTML block or widget in your footer is enough. A snippet plugin such as WPCode is an alternative if your theme will not take HTML in the footer.

Why does the badge show in my browser but the check fails?

Usually a cache serves the crawler an older page, or a lazy loader changes the image src. View the page source and clear the cache.

Can I use a free WordPress.com plan?

Custom HTML support depends on your plan and theme. If your site will not accept the img and anchor, a plan that allows custom HTML is needed.

Does the badge update if I pay later?

Yes, by itself. The same snippet turns into the gold badge after the one time $39 payment. The payment is final.

Keep reading

Get on the record

About a minute, no account and no password. Publishing is free once your badge is on your site. Upgrade once for $39 when you want the gold credential.