[wp-ui] Admin header background color: light or dark?

Alex Hempton-Smith hempsworth at gmail.com
Tue Jun 1 22:30:17 UTC 2010

Quick solution to this:

Plugin Name: Site Colors
Plugin URI: http://www.alexhemptonsmith.com
Description: Lets you define the header color for specific sites
Author: Alex Hempton-Smith
Version: 0.0.1-dev
Author URI: http://www.alexhemptonsmith.com

function site_colors(){

    $site = get_current_site();

    // Site with ID of 1 has a header with a red background
    if ($site->blog_id == 1)
        $header_color = 'red';

    // Site with ID of 2 has a header with a black background
    if ($site->blog_id == 2)
        $header_color = '#000';

    if ($header_color)
        echo "<style type='text/css'>#wphead {background: $header_color
add_action('admin_print_styles', 'site_colors');

-- Alex  (Hempsworth)

On Tue, Jun 1, 2010 at 11:10 PM, andrea_r <andrea at ronandandrea.com> wrote:

> Or on a site-by-site basis when using the new network feature. ;)
> Yes, the titles are different but color can be a great visual cue.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/wp-ui/attachments/20100601/7665cc9f/attachment.htm>

More information about the wp-ui mailing list