Family Encyclopedia >> Electronics

How to Fix the WordPress 'Add Media' Button Not Working: Proven Troubleshooting Steps

Recently, a user on one of our managed WordPress sites encountered the 'Add Media' button suddenly failing in the editor. No error messages appeared, leaving them puzzled. As experienced WordPress administrators, we've resolved this for countless sites. In this guide, we'll walk you through proven fixes for the 'Add Media' button not working in WordPress.

How to Fix the WordPress  Add Media  Button Not Working: Proven Troubleshooting Steps

Why Does the WordPress 'Add Media' Button Stop Working?

This issue typically stems from JavaScript conflicts caused by plugins or themes loading incompatible scripts or stylesheets. WordPress normally concatenates these assets in the admin area to boost performance. However, a faulty script can break the post editor's JavaScript, disabling buttons like 'Add Media'.

How to Fix the WordPress  Add Media  Button Not Working: Proven Troubleshooting Steps

Let's dive into troubleshooting and fixing this step by step.

Quick Fix for the WordPress 'Add Media' Button Issue

For an immediate resolution, add this line to your wp-config.php file, just before the 'That's all, stop editing! Happy publishing.' line:

define('CONCATENATE_SCRIPTS', false);

This disables script concatenation, loading files individually to sidestep conflicts with buggy code. Head back to your post editor afterward—the button should work.

Important: This is a temporary workaround. The root cause persists, so use your browser's developer console (F12 > Console tab) to spot errors pointing to the culprit.

For a permanent solution, follow standard WordPress troubleshooting—ideally on a staging site to avoid live disruptions. Top hosts like Bluehost, SiteGround, WP Engine, and Liquid Web offer one-click staging. See our staging guide here.

On staging: Deactivate all plugins and test the 'Add Media' button. If fixed, reactivate one by one to isolate the offender.

How to Fix the WordPress  Add Media  Button Not Working: Proven Troubleshooting Steps

Replace the faulty plugin or contact its developer. If plugins aren't the issue, switch to a default theme like Twenty Twenty-Four.

How to Fix the WordPress  Add Media  Button Not Working: Proven Troubleshooting Steps

If the default theme resolves it, your theme is conflicting—reach out to its author or choose a reliable alternative.

Apply the fix to your live site once identified. We hope this helped restore your 'Add Media' button. Check our complete list of common WordPress errors for more.

Subscribe to our YouTube channel for video tutorials, and follow us on Twitter and Facebook for tips.