How to Fix WordPress Add Media Button Not Working

1. Clear Your Browser Cache

The first thing you should try when the WordPress Add Media button is not working is to clear your browser cache. This will help to ensure that your browser is not using an outdated version of the page.

2. Disable Your Plugins

If clearing your browser cache does not fix the issue, then you should try disabling your plugins one by one. This will help to identify if any of your plugins are causing the issue.

3. Re-upload the WordPress Core Files

If disabling your plugins does not fix the issue, then you should try re-uploading the WordPress core files. This will help to ensure that all of the core files are up to date and functioning properly.

4. Check Your Theme

If re-uploading the WordPress core files does not fix the issue, then you should check your theme. Make sure that your theme is compatible with the latest version of WordPress and that it is not causing any conflicts.

5. Contact Your Hosting Provider

If none of the above solutions work, then you should contact your hosting provider. They may be able to help you identify the issue and provide a solution.

How to Fix WordPress Add Media Button Not Working

We know the frustration. You are busy preparing a post for publication, so you decide to add some media but the WordPress Add Media button doesn’t work much to your chagrin.

This problem is frustrating because you don’t know what is wrong and your workflow is bearing the brunt of it all. In this post, we show you exactly how to fix Add Media button not working.

That being said, let us dive right in and wow us with your thoughts and suggestions in the comments.

add media button not working

The most common cause of the Add Media button not working is script conflicts among your WordPress themes and plugins. JavaScript runs a lot of features in the WordPress admin including the Add Media button.

When the JS script that runs the Add Media button collides with any other script, it fails to process disabling the Add Media button.

A closely related problem – the Insert into post button not working – is caused by permission errors on a folder, more so when you switch hosts, but that is a story for another day.

Now that this problem is no longer shrouded in mystery, let us troubleshoot and fix Add Media button not working in WordPress.

Using FTP client or File Manager, access your WordPress root directory and open the wp-config.php file for editing.

hostinger file manager

Next, add the following code to just before the line that says “That’s all, stop editing! Happy blogging.”

define('CONCATENATE_SCRIPTS', false);

Save changes to your wp-config.php file. Log out of your WordPress site and clear all of your caches i.e. browser, plugin, 3rd-party, and server cache.

Log in back to your WordPress admin and check if the Add Media button is working.

The above code simply tells WordPress to load each script individually instead of combining the requests, which is what WordPress does by default.

Loading the scripts separately minimizes the chances of running into conflicts.

While this code is your best chance of fixing the Add Media button, it is not a permanent solution since the problem indicates you have conflicting scripts on your site, something you obviously want to fix.

Now let us find the root of the script conflict, so you can eliminate the problem once and for all. We recommend you do this on a staging website instead of a live website.

You can pinpoint the cause of your woes using your browser’s Inspect -> Console. The console tool highlights script errors that can help you to identify where the problem lies.

Chrome Console

That aside, start by deactivating all of your plugins. Then check if the Add Media button is working. If the button is working, then it is obvious one of your plugin is causing the script conflict.

deactivating all plugins to troubleshoot wordpress add media button not working

Next, reactivate the plugins one by one, and check the Add Media button after each activation. When you find the responsible plugin, contact the developer for help or find a replacement.

If the problem persists after deactivating all plugins, you need to ensure you’ve cleared your caches first and then test if your theme is the cause of the WordPress Add Media button not working.

Just activate a default WordPress theme such as Twenty Seventeen and then check if the problem is gone. If the button works, the issue here is your theme.

manage themes in wordpress admin

What to do? Talk to the theme developer for support or change to another theme. If you know your way around code, you can even eliminate the conflict by editing your theme’s files.

When you find the cause of the problem on your staging site, you can go ahead and implement the fix on your live WordPress site.


Usually, the Add Media button breaks due to script conflict somewhere on your website. The line of code we added to wp-config.php we shared earlier should work like magic.

That aside, we recommend you update your WordPress site, so that you can get rid of old code and scripts that might cause conflicts, hence this problem.

Additionally, remember your cache might mislead you to think you have a problem, so it’s vital to clear your cache after/before trying the solution in this post.


How to Fix WordPress Add Media Button Not Working

If you’re a WordPress user, you’ve probably encountered the issue of the Add Media button not working. This can be a frustrating problem, as it prevents you from adding images, videos, and other media to your posts and pages. Fortunately, there are a few simple steps you can take to fix this issue.

Step 1: Check Your Plugins

The first thing you should do is check your plugins. If you have any plugins that are not compatible with the version of WordPress you’re using, they could be causing the Add Media button to malfunction. To check your plugins, go to the Plugins page in your WordPress dashboard and look for any plugins that are not compatible with your version of WordPress.

Step 2: Clear Your Cache

If you’ve recently updated your WordPress version, it’s possible that your browser’s cache is preventing the Add Media button from working properly. To clear your cache, open your browser’s settings and look for the option to clear your cache. Once you’ve cleared your cache, try reloading the page and see if the Add Media button is now working.

Step 3: Disable Your Theme

If the above steps don’t work, you may need to disable your theme. To do this, go to the Appearance page in your WordPress dashboard and select the “Disable” option. This will temporarily disable your theme, allowing you to test if it’s causing the Add Media button to malfunction. If disabling your theme fixes the issue, you may need to update your theme or switch to a different one.

Step 4: Reinstall WordPress

If none of the above steps work, you may need to reinstall WordPress. This is a more drastic solution, but it can be effective in fixing the Add Media button issue. To reinstall WordPress, you’ll need to download the latest version of WordPress from the official website and then upload it to your server. Once you’ve done this, you can then log in to your WordPress dashboard and check if the Add Media button is now working.


If the Add Media button in your WordPress dashboard isn’t working, there are a few steps you can take to fix the issue. First, check your plugins to make sure they’re compatible with your version of WordPress. Then, clear your browser’s cache and disable your theme. If none of these steps work, you may need to reinstall WordPress. By following these steps, you should be able to get the Add Media button working again.

Jaspreet Singh Ghuman

Jaspreet Singh Ghuman

Passionate Professional Blogger, Freelancer, WordPress Enthusiast, Digital Marketer, Web Developer, Server Operator, Networking Expert. Empowering online presence with diverse skills.

jassweb logo

Jassweb always keeps its services up-to-date with the latest trends in the market, providing its customers all over the world with high-end and easily extensible internet, intranet, and extranet products.


Jassweb, Rai Chak, Punjab, India. 143518
Item added to cart.
0 items - 0.00