Wordpress

WordPress snippet custom admin login – page Logo

WordPress snippet custom admin login – page Logo

Replace this link ‘https://wpsnippet.club/wp-content/uploads/2023/05/wpsnippetclub-logo.png’ with the url of your custom logo, and upload it to your sites media.

    
function custom_login_page_logo() { ?> <style type="text/css"> #login h1 a, .login h1 a { background-image: url(https://wpsnippet.club/wp-content/uploads/2023/05/wpsnippetclub-logo.png); height:65px; width:320px; background-size: 320px 65px; background-repeat: no-repeat; background-size: contain !important; padding-bottom: 30px; } </style> <?php } add_action( 'login_enqueue_scripts', 'custom_login_page_logo' );

Leave a Reply