Last active
April 17, 2018 11:41
-
-
Save hwkdev/3385f665eead8b3040caf746b4c0ff73 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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