WordPress Login Page Background Image / Logo Image

function fusion_login_page_styles() {

echo '<style>.login h1 a{background-image: url('.get_template_directory_uri().'/assets/img/logo.png) !important}</style>' ;
?>
<style>
.login.login-action-login{position: relative; height: 100vh; overflow: hidden; background-image: url(<?php echo get_template_directory_uri();?>/assets/img/back_1.jpg);}

}

add_action( 'login_enqueue_scripts', 'fusion_login_page_styles' );

Leave a Comment