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

Jared Williams jaredwilli at gmail.com
Tue Jun 1 23:07:03 UTC 2010


I did a whole tutorial on this where you can completely change the dashboard
here http://new2wp.com/pro/wordpress-dashboard-themes/

I was hoping this would possibly be included as a feature in 3.0 though.

Jared

On Tue, Jun 1, 2010 at 6:30 PM, Alex Hempton-Smith <hempsworth at gmail.com>wrote:

> Quick solution to this:
>
> <?php
> /*
> 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
> !important;}</style>";
> }
> 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.
>>
>
>
> _______________________________________________
> wp-ui mailing list
> wp-ui at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-ui
>
>


-- 
Thank you,

Jared Williams
Web/Graphic Designer
Tweeaks.com  |  New2WP.com
Portfolio:
http://Tweeaks.com/portfolio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/wp-ui/attachments/20100601/2ad12966/attachment.htm>


More information about the wp-ui mailing list