Dropping in Your Own Logo

์ถœ์ฒ˜ : Dropping in Your Own Logo

Providing the client some administrative branding can be quick and easy. Hereโ€™s how to replace the default WordPress โ€œWโ€ logo in the administrative header with a custom alternative.

First, create an image that fits the allocated space. As of WordPress 2.8, the logo is a 30 pixels wide and 31 pixels tall transparent GIF. When using a transparent GIF or 8-bit PNG, ensure that the image matte matches the header background color: hex value 464646.

A logo named โ€œcustom_logo.gifโ€ inside the template directoryโ€™s image subfolder can substitute the default WordPress logo with the following code inside the themeโ€™s โ€œfunctions.phpโ€ file.

//hook the administrative header output
add_action('admin_head', 'my_custom_logo');

function my_custom_logo() {
   echo '


   ';
}

 

๋ง๊ธ€

๏ปฟ
  • ๋กœ๊ทธ์ธ