Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Removes the "Back to" Link from WordPress Login Page
//Here's my custom CSS that removes the back link in a function
function my_login_page_remove_back_to_link() { ?>
<style type="text/css">
body.login div#login p#backtoblog {
display: none;
<?php }
//This loads the function above on the login page
add_action( 'login_enqueue_scripts', 'my_login_page_remove_back_to_link' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment