wp-stage-switcher icon indicating copy to clipboard operation
wp-stage-switcher copied to clipboard

Add support for applying different colors based on environment

Open retlehs opened this issue 3 years ago • 1 comments

Summary

Add support for changing the color of the wp-admin based on environment

Having the ability for each environment to have a different color scheme would help make it more obvious as to which environment you are currently viewing

Implementation Ideas

  1. Add env-<environment> <body> classes to allow writing CSS to target based by environment
    add_filter('body_class', function($classes) {
        $classes[] = 'env-'.sanitize_title(WP_ENV);
        return $classes;
    });
    
  2. Add the ability to swap the wp-admin color scheme based on environment (inspired by wpmark)

retlehs avatar Jun 30 '21 17:06 retlehs

That would be super helpful.

martin-josef avatar Jan 22 '22 19:01 martin-josef