How to Fix Being Locked Out Of WordPress Admin

You’re probably here because you are locked out of your wordpress dashboard, and you don’t know what to do. This probably happened after you installed a plugin or made any changes to the functions.php file. Even if you know what you did wrong-say you added a line of code that had a typo, you can’t just simply go back to the wordpress dashboard and fix it as there is a white screen of death that stands between you and your website. This may become very frustrating especially for beginners, as they have no idea what’s happening to their website. If you are locked out right now, don’t worry yet, as this is a very common issue and everyone has come across the white screen of death at least once.

First, I want to emphasize that you must backup your website everyday. This is very important, because no one wants to wake up one day and see that their website has been hacked without a backup, or being locked out of the wordpress dashboard and having to reset everything. Remember that if you are locked out of your dashboard, you can get away 90% of the time without having to recover any backups. That being said, here are ways that you can fix being locked out of the wordpress admin.

For Bluehost Users:

This is a very simple fix if you host with Bluehost. Basically Bluehost’s cpanel allows you to edit the code of your wordpress site without having to download anything. Go through the steps. If you have any questions, feel free ask me or go to a bluehost live chat where they will professionally help you.

1. Login to Bluehost

2. On the top menu, click on hosting

3. On the submenu right below the top menu, click on cpanel

4. Scroll down until you see files (or you can press ctrl f and type in files)

5. Click on file manager and make sure home directory is bubbled. Press submit

6. On your white screen of death, you can follow the directory until you see the file. If you have no idea what I’m talking about, then go to step 7

7. Press public_html, then wp-content

Now after we get here, then you need to know how you even got logged out of the wordpress dashboard in the first place. Did you recently install a plugin? Did you change the code?

If you changed the code:

8. Click on themes, and then click on the name of the theme that you are currently using

9. Click on the type of file that you changed that got you locked out of the dashboard. Most of the time it is the functions.php file. Right click the file and press edit, and a popup should appear. Press edit again.

10. Revert back any edits you made. For example, if you remember that you added in lines 3-5, then delete lines 3-5.

If you installed a plugin:

8. Click on plugins

9. If you remember the name of the pluging that caused you to be locked out of the dashboard, right click it and press rename. Add a .old after it. For example, if my plugin is called example, I would rename it to example.old. This will cause the plugin to be disabled. If you forgot what plugin you installed, then you can keep renaming random plugins and see which one solves the problem

For non-Bluehost users:

I have no idea if other hosting companies have a cpanel that lets you edit the code, but if yours doesn’t, then follow the steps.

1. Install a FTP client. If you need more information on what it is, go here.

2. Go to the steps above where it is for Bluehost users, and do steps 7-10 or 7-9 after you set up your FTP  client.

Still can’t seem to solve the problem?

If you still can’t solve the problem, then go to your hosting company and ask for help. If they can’t help you and you have to keep your data no matter what, then your best bet is to hire a professional person to fix it for you. however, if you don’t have a budget, then do a full reset of your site. Remember that you always have to do backups everyday.

The following two tabs change content below.
Profile photo of Christopher
Christopher Chang is the founder of BlokkyWeb and content writer and main designer for BlokkyWeb.
Profile photo of Christopher

Latest posts by Christopher (see all)

Profile photo of Christopher

Christopher

Christopher Chang is the founder of BlokkyWeb and content writer and main designer for BlokkyWeb.

Leave a Reply

Support us!

If you like this site and want to support Christopher Chang please like our facebook site!