Skip to content

Instantly share code, notes, and snippets.

@meetawahab
Created August 5, 2020 06:12
Show Gist options
  • Save meetawahab/d29ac300ddebe13d57270ba37adcabfb to your computer and use it in GitHub Desktop.
Save meetawahab/d29ac300ddebe13d57270ba37adcabfb to your computer and use it in GitHub Desktop.
Remove WordPress registration link from login forms through custom CSS.
/** For removing "|" symbol, that fall between 2 links. */
.login-action-login #nav, .login-action-lostpassword #nav {
font-size: 0;
}
/** For removing registration link on login form. */
.login-action-login #nav a:first-child{
display: none;
}
/** For removing registration link on lost password form. */
.login-action-lostpassword #nav a:nth-child(2){
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment