Last active
December 29, 2015 04:59
-
-
Save paulletourneau/7619166 to your computer and use it in GitHub Desktop.
Custom Ladies Learning Code login logo. 1) Paste the code below into your functions.php file
2) Put the 'llc-logo.png' image file within you ' i ' folder in the 'ladies-learning-code' theme file
This file contains 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
// Use your own external logo link | |
function my_url_login(){ | |
return "http://ladieslearningcode.com/"; // your URL here | |
} | |
add_filter('login_headerurl', 'my_url_login'); | |
// Use your own custom logo | |
function my_login_logo() { ?> | |
<style type="text/css"> | |
body.login div#login h1 a { | |
background-image: url(<?php echo get_bloginfo( 'template_directory' ) ?>/i/llc-logo.png); | |
padding-bottom: 30px; | |
} | |
</style> | |
<?php } | |
add_action( 'login_enqueue_scripts', 'my_login_logo' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Download this image and place it in /wp-content/themes/ladies-learning-code/themes/i/llc-logo.png
http://www.paulletourneau.com/wp-content/uploads/2013/11/llc-logo.png