Coolest Guides on the Planet

coolest guides on the planet

Coolest Guides On The Planet

  • Home
  • macOS
  • WebDev
  • All Posts
  • Contact

Remove the WordPress Reset Lost Password Link on Login Page

October 26, 2013 Leave a Comment

To remove the reset ‘Lost Your Password‘ link and function on the WordPress login page you need to add a function to your themes functions.php file and add in some CSS.

The reason why both are needed as the forgot ‘Lost Your Password‘ link appears in 2 areas as a link in the bottom of the dialog box and also as an error dialog box.

wordpress-lost-password-page-link
The first link is at the bottom of wp-login.php, add in the function below to your themes functions.php file to remove it.

function remove_lostpassword_text ( $text ) {
         if ($text == 'Lost your password?'){$text = '';}
                return $text;
         }
add_filter( 'gettext', 'remove_lostpassword_text' );

 

This will remove the link, but an error dialog is displayed if the incorrect values are used in the username/password fields.

wordpress-lost-password-page-link-error

 

You can hide this by adding in some CSS in wp-admin.css add in the code below to /public_html/wp_admin/css/wp-admin.css:

#login_error {display: none;}

Thats it – that link should now be hidden from view.

Cats: Tech, WordPress

Tags

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls

Donate a Beer to the Coolest Guides

Get Beaver Builder Now!

Discuss

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls
Get DesktopServer

Lynda

Lynda.com Online Training Videos

TreeHouse

smlinks

Learn WordPress
osx-modify-shell-path

How to Add to the Shell Path in macOS Big Sur and Catalina using Terminal

October 19, 2019

virtual-hosts osx 10.10 yosemite

Set up Virtual Hosts on macOS Catalina 10.15 in Apache

October 19, 2019

Installing Homebrew on macOS Catalina 10.15, Package Manager for Linux Apps

October 18, 2019

Where is the bash shell in macos Catalina?

October 12, 2019

Refine your search

  • All
  • Modules
  • Themes
  • Documentation
  • Forums & Issues
  • Groups

RSS ars technica

  • OpenAI feels “burned” by Apple’s crappy ChatGPT integration, insiders say
  • Desperate Trump taps "Tim Apple," Jensen Huang, Elon Musk to attend Xi summit
  • Court rules Trump's 10% tariff is just as illegal as the tariff it replaced
  • Which Macs are suffering from shortages—and where are things getting worse?
  • Mac mini starting price goes up to $799, may be hard to get for "months"

RSS mac surfer

  • Apple Seeds First iOS 26.6 and macOS 26.6 Betas
  • Apple Watch Blood Glucose Monitoring Plans Get Encouraging Report
  • Apple Registers GenAI Subdomain Ahead of WWDC
  • Ben Stiller, Mike Judge Team for Apple TV Comedy
  • watchOS 27 Rumors Point to Heart Rate, Watch Face Changes

Donate

Copyright © 2026· Neil Gee - All Rights Reserved - Hosted by Runcloud

Copyright © 2026 · gee on Genesis Framework · WordPress · Log in