Plugin screenshot thumbnail 1/1

Environment Banner plugin for Craft CMS

Marks Craft environments so you can tell them apart at a glance, especially useful with vertical tabs:

  • A coloured banner across the top of the control panel.
  • A coloured symbol at the start of every page <title> (CP and front end), so browser tabs are easy to tell apart.

The defaults mark dev/development with a blue diamond πŸ”· and staging with a red circle πŸ”΄. Shape differs as well as colour, so it works for colour-blind users. Environments that are not listed (such as production) get nothing.

Requirements

This plugin requires Craft CMS 5.0.0 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

    cd /path/to/project
    
  2. Then tell Composer to load the plugin:

    composer require simplygoodwork/craft-environment-banner
    
  3. In the Control Panel, go to Settings β†’ Plugins and click the β€œInstall” button for Environment Banner.

Configure

It works with no config. To change it, create config/environment-banner.php:

<?php

use craft\helpers\App;

return [
    // Defaults to Craft's CRAFT_ENVIRONMENT. Set it if your project uses a different variable.
    'environment' => App::env('ENVIRONMENT'),

    'environments' => [
        'dev' => ['label' => 'Local development', 'color' => '#2563EB', 'symbol' => 'πŸ”·'],
        'staging' => ['label' => 'Staging', 'color' => '#D80621', 'symbol' => 'πŸ”΄'],
    ],

    'showBanner' => true,
    'prefixTitles' => true,
];

Notes

The banner is a ::before on #page-container. If a Craft release changes the CP markup, that selector is the one to revisit.


Brought to you by Good Work.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Reviews

This plugin doesn't have any reviews.

Active Installs
0
Version
1.0.0
License
Craft
Compatibility
Craft 5
Last release
November 13, 2026