Skip to content

How do I fix the "Add Media" button not working in WordPress?

WordPress is an extremely popular content management platform, but like anything else, it can run into bugs. One common issue is the “Add Media” button, which doesn’t always work as it should. If you’re struggling with this, here are some potential solutions.

1. Disabling plugins

Some plugins can conflict with the “Add Media” button in WordPress. The easiest way to check if this is the case is to disable all plugins and see if the problem persists. If the “Add Media” button starts working correctly after you disable the plugins, then one of them is causing the problem. You can then enable the plugins one by one to identify which one is causing the conflict.

2. Switch to default theme

Like plugins, some themes can conflict with the “Add Media” button. To check if your theme is the problem, switch to one of the default WordPress themes, such as Twenty Twenty-One or Twenty Twenty-Two, and see if the problem persists.

3. WordPress update

Another potential cause of problems with the “Add Media” button could be the lack of the latest WordPress updates. Make sure you’re using the latest version of the platform. Updates not only provide new features, but also fix various bugs and issues.

4. Increasing the PHP memory limit

If the above methods do not help, the problem may be due to insufficient PHP memory allocated to your WordPress. In this case, increasing the PHP memory limit may help solve the problem. This can be done by adding the following code to your wp-config.php file:

define( 'WP_MEMORY_LIMIT', '256M' );

5. Using the media plug-in

If none of the above work, there are a number of plugins that can replace the standard “Add Media” button in WordPress. One popular choice is “FileBird – WordPress Media Library Folders”. This plugin allows for more advanced media management in WordPress, giving you the ability to create folders and subfolders, as well as offering drag and drop functionality.

You can also add the following code in functions.php. Go to your website code and add the following code to the file:

add_action( 'admin_init', 'refresh_mce' ); function refresh_mce() { global $tinymce_version; $tinymce_version = '4098'; wp_tiny_mce(); }

If the steps above do not help, you should contact your hosting provider or WordPress support team for further assistance.

Keep in mind that fixing the “Add Media” button may take some time and patience, but it’s usually a matter of eliminating possible causes. If none of the above solutions help, it’s worth seeking help from a WordPress specialist who can identify and fix the problem.

Check out the offer of 1500+ Premium WordPress plugins and themes!