Skip to content

Instantly share code, notes, and snippets.

@OscarAbadFolgueira
Created March 5, 2016 18:04
Show Gist options
  • Save OscarAbadFolgueira/e7cf71ff9b27ba636c77 to your computer and use it in GitHub Desktop.
Save OscarAbadFolgueira/e7cf71ff9b27ba636c77 to your computer and use it in GitHub Desktop.
WordPress Snippet: Cambiar el logo del accedo a la administración.
<?php
/**
* This WordPress code snippet change the login logo of your WordPress site.
*
* Author: Oscar Abad Folgueira
* Author URI: http://www.oscarabadfolgueira.com
*
* You can copy this snippet and paste in your functions.php or you can build your own plugin
*
* Change the url of the logo image to your needs.
*/
function oaf_change_login_logo() {
echo '<style type="text/css">
h1 a { background-image:url(/images/logo.jpg) !important; }
</style>';
}
add_action('login_head', 'oaf_change_login_logo');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment