Menu

Add own site logo in wordpress login page

hello friends,

put the bellow code in your theme function.php file


function twentyeleven_body_classes( $classes ) {

	if ( function_exists( 'is_multi_author' ) && ! is_multi_author() )
		$classes[] = 'single-author';

	if ( is_singular() && ! is_home() && ! is_page_template( 'showcase.php' ) && ! is_page_template( 'sidebar-page.php' ) )
		$classes[] = 'singular';

	return $classes;
}
add_filter( 'body_class', 'twentyeleven_body_classes' );
add_action("login_head", "my_login_head");
function my_login_head() {
	echo "
	<style>
	body.login #login h1 a {
		background: url('".get_bloginfo('template_url')."/images/login-logo.png') no-repeat scroll center top transparent;
		height: 110px;
		width: 300px;
	}
	body.login #login{
		padding:20px 0px 0px 0px;	
	}
	</style>
	";
}

No comments

Leave a Reply


6 − 3 =

Categories