Carbonbadge Block


The Website Carbon widget Gutenberg block, made with the Interactivity API.

Yes, websites have a carbon footprint

Website Carbon is a service made by Wholegrain digital to help inspire and educate people to create a zero carbon internet. Provides an easy way to check the carbon footprint of your website.

They provide a official badge to put on your website, and with this plugin, you can have that badge as a reactive Gutenberg block, thanks to the new Interactivity API

How it works

This plugin adds a new block to the Gutenberg editor, called “Carbonbadge”. You can add it to any post or page, and it will show the carbon footprint of the current page.
The block will render a badge with the carbon footprint of the current page, and a link to the Website Carbon website.
The data is fetched from the Website Carbon API, with a client side call, and it’s updated every time the page is loaded. The result for a concrete page is cached for 24 hours, client side.
More information on the Website Carbon badge can be found here and on the website FAQ page here
The privacy policy of the Website Carbon service can be found here
The Website Carbon service is provided by Wholegrain digital

The code on GitHub

You can find the code of this plugin on GitHub


Deze plugin heeft 1 blok.

  • Carbonbadge Block to display your website's carbon footprint using the Carbonbadge API.


  1. Upload the plugin files to the /wp-content/plugins/carbonbadge-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the \’Plugins\’ screen in WordPress.
  3. Place the block on any Gutenberg post or page.


Er zijn geen beoordelingen voor deze plugin.

Bijdragers & ontwikkelaars

“Carbonbadge Block” is open source software. De volgende personen hebben bijgedragen aan deze plugin.


“Carbonbadge Block” is vertaald in 3 talen. Dank voor de vertalers voor hun bijdragen.

Vertaal “Carbonbadge Block” naar jouw taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.



  • Remove Website Carbon text from i18n


  • Fix a error with an action on the view


  • Fix some issues with translations


  • Add an option to hide the badge link
  • Add an option to choose the tested page link
  • Now the Website Carbon link points to the results of the tested page
  • Improve code documentation
  • Improve code structure and readability


  • Improve localization
  • Improve code documentation
  • Optimize block rendering Interactivity logic
  • Update dependencies


  • First stable release
  • Add block icon on the editor
  • Better code documentation


  • Fix error when generating the plugin, currentPage var was taking the testing page instead of the current page


  • Fix localization issues
  • Improve in code documentation


  • Change plugin name and slug to carbonbadge-block


  • First release