What's WP
Find Everything Related to WordPress - Best Tutoriasl on WordPress!
How to Fix Add Media Button Not Working in WordPress

How to Fix Add Media Button Not Working in WordPress

Do you come across a situation where Add Media button fails to work as usual? With the need to upload media files, you are probably looking for how to get the issue solved. In fact, you are not the only one who has the same experience. To optimize for the best of the whole user base over a long term, professional solutions to fix Add Media Button not working issue are available in this article.

With a click on the Add Media button, WordPress will open Media Library where new files can be uploaded and uploaded files can be chosen. However, nothing happened even without any error or warning displayed. There is no surprise that you have no clue what is wrong with this functionality.

What Causes the WordPress ‘Add Media’ Button Issue?

The major cause should be javascript/jquery conflicting. By default, scripts and stylesheets are loaded according to the requests. However, compatibility issues may happen with the scripts and stylesheets which come after the installation of WordPress plugins and themes.

Your WordPress admin area is the place to load the required scripts and stylesheets, which can result in the improved website speed.

Located at the top of the Post/Page editor, Add Media is one of the buttons which should work with JavaScript. It can be disabled due to a conflict which prevents JavaScript from working.

Fix Add Media Button in WordPress - Post Editor

Fix Add Media Button Not Working Issue in WordPress

When encountering that WordPress Add Media was not working, multiple solutions are available for you to fix it.

Method 1: Edit wp-config.php file

wp-config.php is a file which you can open from your WordPress root directory. There will be a line ‘ That’s all, stop editing! Happy blogging’ in the file. And the below code should be added before that.

Fix Add Media Button in WordPress - Code

This will drive all the scripts to load on their own, which can protect your WordPress site from JavaScript conflict. Save the file and check whether Add Media can work from the post/page edit screen. But one thing for you to know is that editing wp-config.php file is a temporary solution. At the same time, it will slow down your website speed and impact your website performance.

Method 2: Deactivate all the plugins

In the long run, you’d better find the source of the issue with the use of an inspect tool. Thanks to the warnings and errors, you will have a better idea of where to start.

You have the need to disable the installed plugins one by one. Then check whether the error is fixed because of the deactivated plugin. This will help you find which plugin should be the cause and where the conflict is.

Fix Add Media Button in WordPress - Installed Plugins

After checking plugins, find a great alternative to the one which causes the issue. Of course, you can also try to get technical assistance from the plugin developers at first.

Method 3: Switch to a Default Theme

If you still fail to fix the issue, your current theme can take the responsibility. Temporarily switch from your current theme to a default one, for example, Twenty Seventeen.

Fix Add Media Button in WordPress - Default Theme

If the Add Media button can be responsive, your current theme should be replaced with a new one. Certainly, you can also give a chance to the theme author.


Zoe is a freelance writer who has a deep knowledge about WordPress. She loves everything related to website building and loves to share her experience with people all over all the world. In the daily life, Zoe loves detective novels as it can train her logical thinking and creativity.