Example:
PHP
add_filter( 'login_headerurl', 'namespace_login_headerurl' );
/**
* Replaces the login header logo URL
*
* @param $url
*/
function namespace_login_headerurl( $url ) {
$url = home_url( '/' );
return $url;
}
add_filter( 'login_headertitle', 'namespace_login_headertitle' );
/**
* Replaces the login header logo title
*
* @param $title
*/
function namespace_login_headertitle( $title ) {
$title = get_bloginfo( 'name' );
return $title;
}
add_action( 'login_head', 'namespace_login_style' );
/**
* Replaces the login header logo
*/
function namespace_login_style() {
echo '<style>.login h1 a { background-image: url( ' . get_template_directory_uri() . '/images/logo.png ) !important; }</style>';
}
Full Code of change the Login Logo & Image URL Link | Wordpress Administration Shortcode |
Edit: Full Code of change the Login Logo & Image URL Link | Wordpress Administration Shortcode |
How to Enable Hidden Administration Feature displaying All Site Settings | Wordpress Administration Shortcode |
How to change the Login Logo & Image URL Link | Wordpress Administration Shortcode |
How to Remove Update Notification for all users except ADMIN User | Wordpress Administration Shortcode |
How to Remove Default WordPress Meta Boxes | Wordpress Administration Shortcode |
How to Remove "Wordpress" to "WordPress" filter | Wordpress Administration Shortcode |
How to Customize the order of the administration menu | Wordpress Administration Shortcode |
How to Add Thumbnails in Manage Posts/Pages List | Wordpress Administration Shortcode |
Type: | Php |
Category: | Web Tutorial |
Sub Category: | Wordpress Administration Shortcode |
Uploaded by: | Admin |