Custom Login Page Background Image
Set a custom background image for the WordPress login page.
<?php
function custom_login_background() {
echo '<style type="text/css">
body.login { background: url("https://example.com/path-to-image.jpg") no-repeat center center; background-size: cover; }
</style>';
}
add_action('login_enqueue_scripts', 'custom_login_background');
?>
Post Comment