Skip to content

Instantly share code, notes, and snippets.

@feliciaceballos
Last active March 12, 2019 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feliciaceballos/2bf71c23bc63367c4f9ff4e8d0916272 to your computer and use it in GitHub Desktop.
Save feliciaceballos/2bf71c23bc63367c4f9ff4e8d0916272 to your computer and use it in GitHub Desktop.
Removes the "Back to" Link from WordPress Login Page
<?php
//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;
}
</style>
<?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