Rebranding admin header

0

Hiya,

Do I miss something or is there no plugin here for rebranding the small WP logo in the admin header section?

When I installe the rebrand WP admin plugin from the WP repository it conflicts with WPMUdev admin footer plugin it seems.

No big deal, but I was just wondering; it seems logical to expect such a plugin over here.

Thx & grtz,

Ronald

  • DavidM
    • DEV MAN’s Mascot

    Hi Ronald,

    Hope you don’t mind my moving this over to the Feature Suggestion forum as there’s not currently a rebranding plugin for that logo. As far as I recall, that’s the only thing missing among the rebranding plugins here too, so I figured it would be good to get a tally of whoever else may be looking for that here.

    Any +1s?

  • wpcdn
    • Syntax Hero

    Here’s a quick and dirty plugin (not perfect) that will do it.

    <?php
    /*
    Plugin Name: Admin Logo
    Plugin URI: http://sixrevisions.com/wordpress/how-to-customize-the-wordpress-admin-area/
    Description: Custom admin logo
    Author: Built with code provided by Six Revisions
    Author URI: http://sixrevisions.com/wordpress/how-to-customize-the-wordpress-admin-area/
    */

    function custom_logo() {
    echo '<style type="text/css">
    #header-logo { background-image: url('.get_bloginfo('template_directory').'/images/admin_logo.png) !important; }
    </style>';
    }

    add_action('admin_head', 'custom_logo');

    ?>

    I didn’t create this…the source is identified in the code. The code is designed to be dropped in a theme’s functions.php file, but I thought a plugin would be better since it will work regardless of what theme is active. Unfortunately, the code expects the logo to be in the current theme’s images directory. I tried to change it to be relative to the plugin location, but without any luck. So I left it the way it was. If anyone can figure that out and get it looking in the plugin’s location for the logo, I would greatly appreciate it. Otherwise you should be able to hard-code the URL.

    I hope this gets you in the right direction at least.

    Mark

    WPCDN

  • wpcdn
    • Syntax Hero

    Isn’t that what this one does?

    Not quite. That one modifies the admin bar, which is the optional dark bar across the top.

    The plugin I posted (and what Ronald was asking for) modifies the small logo in the WordPress admin area…the area that always appears, whether or not the admin bar is visible.

    BTW @mrjarbenne, cool avatar!

    Mark

  • Ronald
    • The Crimson Coder

    It worked nicely Mark!

    I noticed that the size is restricted to 16 x 16 pixels.

    That’s no problem for now but perhaps, when looking into this by dev’s, it possible to let go of this restriction. In the rebrand WP admin plugin they realised this.

    For now I’m satisfied.

    Thanks for the tip!