How To Manually Replace A WordPress Theme Or Plugin File Tutorial by Pee Aye Creative

How To Manually Replace A WordPress Theme Or Plugin File

In this tutorial I will show you how to manually replace or re-install a WordPress theme or plugin file to troubleshoot an issue.

Join subscribers on our YouTube channel and enjoy other Divi video tutorials!

Examples & Use Cases

If you are wondering why this post is necessary, let me give you some real examples that I have personally seen in my experience as both a theme and plugin user and a plugin developer.

Auto-Update Is Not Working

Let’s say you have purchased a premium plugin from a developer, and normally their auto-update system works great to get the next version of the plugin, but for some reason you notice it did not work. If you contact them, they may say to go to your account and download the plugin, and then re-upload it to your website. But some users do not know how to do that, so this post will explain it.

Theme Error On Latest Version

Occasionally users will get some issue such as missing CSS file in the Divi theme. I have found that the best solution to solve this is to simply download the Divi theme again and re-upload it to the site over top of the existing file. This way, you know for sure that the theme file is correct and not corrupted. But how to do that? Follow the tutorial to find out.

Bug Fixes

Sometimes a plugin developer may be aware of a minor issue and has already fixed it, but the upload is not yet released. In this case, they developer may send you the file and tell you to upload this new file to solve the issue. If you do not know how to proceed, follow the rest of this tutorial.

Method 1. Re-Upload File In WordPress Dashboard

The first, easiest, and best way for you to replace an existing theme or plugin file is to simply upload the file as a new file. For this example, we will use a plugin, but a theme would be very similar.

Download The File

If this is a free plugin in the WordPress repository, you can go to the WordPress plugin repository ( and search for the plugin and then click the blue “Download” button and save the file to your computer.

If this is a premium plugin from a developer such as myself, you would log into the account on our website, find the download section, and download the plugin file.

Add New

Next, go to your WordPress admin area to Plugins>Add New. Here you will see a button to “Upload Plugin” at the top of the screen. After clicking that, choose the file you downloaded and install it.

If this seems confusing, don’t worry. When you upload the file, WordPress will notice if the file is the same plugin or theme and give you a message like, “This plugin is already installed.” It will give you two choices:

  • Replace current with uploaded
  • Cancel and go back

This is super convenient because it also tells you about the similarities or differences between the existing file and the file you just uploaded.

replace WordPress plugin file with currently uploaded new file

NOTE: Replacing a plugin is the same as updating to a new version. It will not change any settings. This is because the settings are saved in the database, so upgrading or replacing the file will not have any negative affect and will not affect your settings.

Method 2. Replace File With File Manager Or FTP

If for some reason you want another method, you can also do this by replacing the existing theme or plugin folder by using a file manage. I personally find the various file manager plugins super convenient, but you can also use the file manager in your hosting provider account. The same would be possible with FTP, for those advanced users, but if you are using FTP you probably already knew that.

replace WordPress theme file with file manager or FTP

Last updated Oct 4, 2022 @ 12:57 am


Each month we send out a roundup email newsletter with the latest tutorials, product updates, helpful resources, and any other industry or personal news. Occasionally we send an extra separate email here and there if we just can’t wait! So that’s what you will get if you subscribe, and you can always unsubscribe at any time if you just can’t take it anymore 🙂

Please share this post!

Nelson Lee Miller (aka The Divi Teacher)

Nelson is the owner of Pee-Aye Creative in the beautiful state of Pennsylvania. He loves helping small businesses, exploring outdoors, building websites with Divi, and teaching others.

Leave A Response!

By commenting you agree to our Blog & YouTube Comments Policy


  1. Ernesto

    Thank you very much! I have a question please, how can i remove unused languages from Woocommerce manually?


Submit a Comment

Your email address will not be published.

Recent Posts


Your Cart