Search Burst

Find answers, guides, features and more.

    Home – Guides – How to show a green hosting badge on your WordPress site

    How to show a green hosting badge on your WordPress site

    If your host runs on renewable energy, you can now show that on your site with a badge your visitors can check for themselves. Burst Statistics verifies your hosting with the Green Web Foundation and gives you a Green hosting badge block and a This website uses green hosting, verified by the Green Web Foundation shortcode to place the badge anywhere.

    This guide explains why a verified badge is worth more than a line in your footer, how Burst gets it onto your site without loading anything from a third party, and how to set it up in a few minutes.

    Why show a green hosting badge

    A website uses electricity every time someone loads a page: in the data center that serves it, the network that carries it and the device that shows it. The data center is the part you choose. A host that runs on renewable energy cuts the emissions of every pageview you serve, without you changing a single page.

    That choice is invisible to your visitors. A badge makes it visible, and there are good reasons to want that:

    • Your visitors care. A sustainable webshop, a climate nonprofit or a local bakery that writes about its organic suppliers has an audience that notices these things
    • Clients ask for it. Agencies and freelancers increasingly get sustainability questions in tenders and briefs. A verified badge is a concrete answer
    • It’s proof, not a promise. Anyone can write “we use green hosting” in a footer. This badge links to the Green Web Foundation’s public check for your domain, so a skeptical visitor can verify it with one click

    What the Green Web Foundation is

    The Green Web Foundation is an independent nonprofit that keeps a public database of hosting providers that run on green energy. Providers have to show evidence, like renewable energy contracts or certificates, before they’re listed. The badge only appears when your host is in that database.

    What the badge doesn’t say

    Be honest with yourself and your visitors about what the badge means. It confirms that your hosting runs on green energy. It says nothing about how heavy your pages are, how much energy your visitors’ devices use or how sustainable the rest of your business is.

    A 6 MB homepage on green hosting still wastes energy on every visit. That’s why the badge sits next to the Page weight block in Burst, which shows how heavy your pages are and estimates the CO2 per pageview. Use both: the badge to show your choice of host, the page weight figures to find out what else you can improve.

    How the badge works in Burst

    Most badge integrations ask you to paste a script or an image link from an external service into your site. Every visitor’s browser then contacts that service, which sees their IP address and which page they’re on. For a privacy-friendly analytics plugin, that would be an odd thing to recommend.

    Burst does it differently:

    1. You start the check. Burst never contacts the Green Web Foundation on its own. Nothing happens until you click Check in the Page weight block
    2. Your site downloads the badge. When the check confirms green hosting, your site downloads the badge image in the background and stores it in your own uploads folder (wp-content/uploads/burst/green-hosting/)
    3. Visitors load it from your site. The block and the shortcode show that local copy, so visitors load nothing from the Green Web Foundation or anyone else
    4. Burst keeps it current. The check refreshes in the background when the result is older than 30 days, and Burst checks once a day that the stored badge still matches a current, green result for your domain

    When a refresh no longer confirms green hosting, or you move the site to another domain, the badge disappears from every page on its own. You don’t have to edit or re-save anything. Visitors never see a “not verified” message either: without a current verification, the block and the shortcode output nothing.

    The badge is part of Burst Statistics, the free plugin. You don’t need Burst Pro for it.

    Step 1. Check your hosting

    1. In your WordPress admin, go to Burst and open the Engagement page
    2. Scroll to the Page weight block
    3. Below the table, click Check

    The check takes a few seconds. The status line above the button then shows one of these results:

    • This website uses green hosting from [your provider]: your host is verified. Continue with step 2
    • Green hosting: not verified: your host isn’t in the Green Web Foundation’s database for this domain. See What to do when your hosting isn’t verified
    • Green hosting: not checked: no check has run yet, or the last result has expired. Click Check again

    After a green result, Burst downloads the badge in a separate background task through WP-Cron, so the check itself stays fast. On most sites the badge is ready within a minute or after the next page load.

    See what green hosting would change

    Not verified yet? Open the options menu of the Page weight block and turn on Calculate with green hosting. The CO2 estimates then show what your pages would emit on green hosting, so you can see what switching hosts would save before you make the move. This option only appears on sites that aren’t verified green yet.

    Step 2. Add the badge with the block

    On sites that use the block editor, the Green hosting badge block is the quickest way.

    1. Open the page, post or template part where you want the badge. Many sites put it in the footer, so it shows on every page
    2. Click the block inserter (the + button) and search for “Green hosting badge”
    3. Add the block

    The editor shows the same badge your visitors will see. If your hosting isn’t verified yet, the editor shows a note instead, explaining that the badge appears once Burst has verified green hosting. That note is only visible in the editor, never on your live site.

    To add the badge to every page on a block theme, edit the footer template part under Appearance > Editor > Patterns > Template parts and add the block there.

    Step 3. Or add the badge with the shortcode

    Use the shortcode on classic themes, in widget areas and in page builders like Elementor, Divi or Beaver Builder:

    [burst_green_hosting_badge]

    Paste it into a shortcode block, a text widget or your page builder’s shortcode element. The shortcode doesn’t take any options.

    To add the badge straight to a theme template, for example in footer.php of your child theme:

    <?php echo do_shortcode( '[burst_green_hosting_badge]' ); ?>

    The shortcode follows the same rules as the block: it shows the badge when your hosting is verified and outputs nothing otherwise. That makes it safe to leave in place when you’re not sure your host will stay verified.

    Styling the badge

    The badge is a 200 by 95 pixel image inside a link with the class burst-green-hosting-badge. The link opens the Green Web Foundation’s check for your domain in a new tab. The image is lazy loaded, so it doesn’t slow down the top of your page.

    To center the badge in your footer, add this to Appearance > Customize > Additional CSS or to your child theme’s stylesheet:

    .burst-green-hosting-badge {	display: block;	width: fit-content;	margin: 1.5rem auto;}

    To make it smaller on mobile:

    @media (max-width: 600px) {	.burst-green-hosting-badge img {		width: 150px;		height: auto;	}}

    What to do when your hosting isn’t verified

    A “not verified” result means the Green Web Foundation has no record of green energy for the servers behind your domain. That doesn’t always mean your host uses fossil energy. In the setups I’ve seen, it usually comes down to one of these:

    • Your host isn’t listed. Some providers run on renewable energy but never registered with the Green Web Foundation. Ask your host whether they’re listed, and point them to the Green Web Foundation if they’re not
    • A CDN or proxy sits in front of your site. The check looks at the servers your domain points to. If your traffic goes through a CDN like Cloudflare, the result is about that network, not about your host
    • Your host isn’t green. Then the honest answer is that there’s no badge to show, and the Calculate with green hosting option in the Page weight block shows what a switch would save

    Once your host is listed, go back to the Page weight block and click Check again.

    Troubleshooting

    The block shows a note instead of the badge

    Burst hasn’t verified green hosting for this site yet, or the badge is still downloading. Run the check in the Page weight block. If the result is green, wait a minute and reload the editor.

    The badge doesn’t show on my live site

    Check these in order:

    1. The result is green. The status line in the Page weight block should say “This website uses green hosting”
    2. WP-Cron runs. The badge downloads in a background task. If your site has DISABLE_WP_CRON set, make sure a server cron job calls wp-cron.php, otherwise the download never runs
    3. Essentials mode is off. Essentials mode, under Settings > General, turns off CO2 measurement and hides the badge with it
    4. Your page cache is cleared. A caching plugin may still serve a version of the page from before the badge was ready

    The badge disappeared

    The badge goes away when a refresh no longer confirms green hosting, when the last successful check is too old (30 days plus a week of grace when refreshes keep failing) or when your site moved to another domain. Open the Page weight block, click Check again and the badge comes back once the result is green.

    Next steps

    The badge shows your choice of host. The Page weight block on the Engagement page shows what’s left: which pages are heaviest and what they cost in CO2 per pageview. Start with your three most visited pages, since a lighter homepage saves more than a lighter archive page nobody opens.

    Written by

    Co-founder of Burst Statistics