Skip to content

Instantly share code, notes, and snippets.

@hwkdev
Last active April 17, 2018 11:41
Show Gist options
  • Select an option

  • Save hwkdev/3385f665eead8b3040caf746b4c0ff73 to your computer and use it in GitHub Desktop.

Select an option

Save hwkdev/3385f665eead8b3040caf746b4c0ff73 to your computer and use it in GitHub Desktop.
<?php
add_action('login_enqueue_scripts', '_pit_login_logo_style');
function _pit_login_logo_style(){ ?>
<style type="text/css">
#login h1 a, .login h1 a {
background-image: url(<?php header_image(); ?>);
height:80px;
width:320px;
background-repeat: no-repeat;
background-size: contain;
}
</style>
<?php }
add_filter('login_headerurl', '_pit_login_logo_url');
function _pit_login_logo_url() {
return home_url();
}
add_filter('login_headertitle', '_pit_login_logo_title');
function _pit_login_logo_title() {
return get_bloginfo('name');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment