Skip to content

Change admin colors based on the server (local, dev, staging, production) environment.

License

Notifications You must be signed in to change notification settings

smartystudio/smarty-change-admin-colors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmartyStudio Logo

Smarty Studio - Change Admin Colors

Licence

Overview

Change admin colors based on the server (local, dev, staging, production).

Description

The SM - Change Admin Colors plugin offers a dynamic way to change the WordPress admin dashboard's color scheme based on the server environment. This feature aids in distinguishing between local, development, staging, and production environments at a glance, reducing the risk of making unintended changes in the wrong environment. Developed by Smarty Studio and Martin Nestorov, this plugin integrates seamlessly into your WordPress setup, enhancing workflow efficiency and safety.

Installation

  1. Download the Plugin: Download the ZIP file from the repo.
  2. Upload to WordPress:
    • Navigate to your WordPress admin panel.
    • Go to Plugins > Add New > Upload Plugin.
    • Choose the downloaded ZIP file and click 'Install Now.'
  3. Activate the Plugin:
    • Once installed, click on 'Activate Plugin' to enable its features on your site.

Usage

After activation, the plugin automatically detects your WordPress environment setting and changes the admin bar color accordingly based on define('WP_ENVIRONMENT_TYPE', 'staging') constant being set in your wp-config.php file.

  • Local: Orange
  • Development: Blue
  • Staging: Purple
  • Production: Green

No further configuration is required. The plugin works out of the box by utilizing the wp_get_environment_type() function to determine the current environment and applying the respective color to the admin bar.

Changelog

For a detailed list of changes and updates made to this project, please refer to our Changelog.


License

This project is released under the GPL-2.0+ License.

About

Change admin colors based on the server (local, dev, staging, production) environment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages