Skip to content

Instantly share code, notes, and snippets.

@alhoseany
Forked from anonymous/admin-logo.php
Created April 28, 2018 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alhoseany/64f93b3f89271beabfa1784e1d274a69 to your computer and use it in GitHub Desktop.
Save alhoseany/64f93b3f89271beabfa1784e1d274a69 to your computer and use it in GitHub Desktop.
<?php
// CUSTOM ADMIN LOGIN HEADER LOGO
function my_custom_login_logo() {
echo '<style type="text/css"> h1 a { background-image:url('.get_bloginfo('template_directory').'/images/democratic-post-logo-google.jpg) !important; } </style>';
}
add_action('login_head', 'my_custom_login_logo');
// Die URL des Logos auf die eigene Website zeigen lassen
function gp_change_login_page_url($login_header_url) {
return get_bloginfo( 'url' );
}
add_filter( 'login_headerurl', 'gp_change_login_page_url' );
//Den Seitentitel des Logos ändern
function gp_change_login_page_title($login_header_title) {
return get_bloginfo('title');
}
add_filter( 'login_headertitle', 'gp_change_login_page_title' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment