Plugin screenshot thumbnail 1/2
Plugin screenshot thumbnail 2/2

The Environment Label plugin adds a nice coloured banner to your CraftCMS control panel so you'll never forget what environment you're using.

The colors and text of the environment label are configurable via the plugin config file.

Configuration

You can use a plugin config file to tweak the appearance and text of the environment label for each installation.

Simply add an environment-label.php file to your config directory.

<?php

return [
    'showLabel' => true,
    'labelText' => "My Label Text",
    'labelColor' => '#cc5643',
    'textColor' => '#ffffff',
    'targetSelector' => '#global-header:before',
];

The text of the label will be rendered as a Twig template, so you can also include template variables to make the text dynamic:

<?php

return [
    'labelText' => "Editing as: {{ currentUser }}",
);
Installation Instructions

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

Active Installs
4,284
Version
4.0.3
License
Craft
Compatibility
Craft 3, Craft 4, Craft 5
Last release
April 26, 2023
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs