Answers for "Wordpress login page Background Image / Logo Image"

PHP
0

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' );
Posted by: Guest on November-19-2020

Code answers related to "Wordpress login page Background Image / Logo Image"

Browse Popular Code Answers by Language