/ Published in: PHP
This allows you to change the logo, title text, and url for the login logo in wordpress.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function custom_login_logo() { echo '<style type="text/css"> .login h1 a { background-image: url("http://craveacademy.com/wp-content/uploads/wordpress-logo.png") !important; } </style>'; } add_action('login_head', 'custom_login_logo'); function custom_login_url(){ return 'http://www.craveacademy.com/'; } add_filter('login_headerurl', 'custom_login_url'); function custom_login_logo_title(){ return 'Crave Academy'; } add_filter('login_headertitle', 'custom_login_logo_title');