Skip to content

Instantly share code, notes, and snippets.

@caralgar
Created May 10, 2018 21:21
Show Gist options
  • Save caralgar/0a4fcff9bc9c21a216b5266f3c43f9c3 to your computer and use it in GitHub Desktop.
Save caralgar/0a4fcff9bc9c21a216b5266f3c43f9c3 to your computer and use it in GitHub Desktop.
Cómo cambiar el logotipo de Login en WordPress (II)
<?php
function calfaro_custom_login_logo() {
echo '
<style type="text/css">
.login h1 a {
background-image: url(' . get_stylesheet_directory_uri() . '/images/logo-calfaro.png);
padding-bottom: 0px;
width: 100%;
background-size: contain;
}
</style>';
}
add_action( 'login_enqueue_scripts', 'calfaro_custom_login_logo' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment