Skip to Main Content

How to fix the media library that no longer works on WordPress

Divi: the easiest WordPress theme to use

Easily create your website with Elementor

Elementor allows you to easily create any website design with a professional look. Stop paying expensive for what you can do yourself. [Free]

How to fix the media library that no longer works on WordPress?

Recently, one of our users reported that the button " Add a media On his WordPress website suddenly stopped working.

This issue does not display any errors or warnings that prevent users from knowing why their " Add a media " does not work.

In this article, we are going to show you how to easily fix the 'Add Media' button not working in WordPress.

But before, if you have never installed WordPress discover How to Install a WordPress Blog in 7 Steps et How to search, install and activate a WordPress theme on your blog 

Then back to why we are here.

correct the media library that no longer works

What are the causes of the "Add media" button malfunction on WordPress?

This problem is usually caused by conflicting scripts or style sheets loaded by WordPress plugins or themes installed on your website. The default behavior of WordPress is to load all the required scripts and stylesheets by combining the queries.

This is usually done in the WordPress dashboard to improve performance and speed.

The WordPress post editor uses JavaScript for all buttons on the screen, including the Add Media button. A conflict can prevent JavaScript from working, which will prevent the 'Add Media' button from working.

How to fix the media library that no longer works on WordPress

That being said, let's take a look at how to fix and fix the 'Add Media' button not working on WordPress.

Fixed the "Add media" button not working on WordPress

The quick fix is ​​to add the following code to your wp-config.php file. You can do this by editing the wp-config.php file and adding this code just before the line that says 'That's all stop editing happy blogging'.

Divi: The best WordPress theme of all time!

With over 901.000 downloads, Divi is the most popular WordPress theme in the world. It is complete, easy to use and comes with more than 62 free templates. [Recommended]

define ('CONCATENATE_SCRIPTS', false);

This code simply tells WordPress to load each script separately, which helps avoid JavaScript conflict with buggy scripts and core WordPress functionality.

Once you've added the code, go ahead and edit the post screen and test the " Add a media“, To see if it works as expected.

How to manage and restore a version of WordPress with VersionPress

Note: Adding this code is not a suitable long-term solution because you still have a script that is causing the problem. An easier way is to find the source of the problem using the Inspect tool in browsers. It will show you the errors on the console that can lead you to the source of the conflict.

If you want a long term fix for this problem, you need to perform basic WordPress troubleshooting tips to find out which plugin or theme may be causing the problem. 

What is the difference between H1 and the SEO title of a WordPress article?

We strongly recommend that you do this on your test website rather than on a production website.

On your test website, you should first deactivate all your WordPress plugins and then check if this fixes the problem with the 'Add media' button. If so, it means that one of the plugins was causing the problem.

How to fix the media library that no longer works on WordPress

You can now activate plugins one by one, and after activating a plugin, test the 'Add media' button. This will help you find which plugin is causing the problem. After finding the culprit, you can replace it with another plugin or contact the developer.

Discover How to clean WordPress in a few steps

If disabling plugins doesn't solve the problem, then the next step is to temporarily switch to a default WordPress theme like Twenty Seventeen.

How to fix the media library that no longer works on WordPress

Are you looking for the best WordPress themes and plugins?

Download the best plugins and WordPress themes on Envato and easily create your website. Already more than 49.720.000 downloads. [EXCLUSIVE]

If switching to the default theme fixes the problem for you, it means your theme is the source of the conflict. You can ask for help from the theme author or switch to a different WordPress theme.

Once you find the source of the problem on your testing website, you can apply the fix on your production WordPress site.

Discover also some premium WordPress plugins  

You can use other WordPress plugins to give a modern look and optimize the grip of your blog or website.

We offer you here some premium WordPress plugins that will help you do that.

1. Premium Charts for Elementor

Premium Charts for Elementor is a WordPress plugin and an extension of the famous Elementor plugin that you allows you to insert the highly customizable dynamic diagrams into articles, pages or sidebars, using simple automatically generated shortcodes.

Premium charts for elementor wordpress plugin

Its main functions are: the automatic updating of the chart when the page loads, the support for zone charts, line charts and candlestick charts, the support of technical indicators (simple, exponential and weighted mobility), customization titles, colors and backgrounds, support for an unlimited number of different diagrams on a single page, and more.

Download | Demo | Web hosting

2. Category Colors

The WordPress Category Colors plugin will allow you to define a custom color per article category in order to spice up the appearance of your WordPress theme. For example, you can use it on your WordPress theme to color your category names, your article titles, your background, your lines, etc ...Category colors

Its colors are very easily customizable and it adds a ColorPicker jQuery to your WordPress categories, so you can choose a custom color for each category. After that, you will have to add this code to your WordPress theme to use it perfectly. 

For more information, you can consult the FAQ or the documentation offered by its developers.

Download | Demo | Web hosting

3. Responsive Charts

Responsive Charts is a WordPress plugin that allows you to easily create animated charts on your blog or on your website.

Responsive charts 1

Its main features are: 7 types of animated diagrams, multiple diagrams in one page, completely customizable diagrams and tooltips, multiple data sets for bar and line diagrams, import of data from format files CSV, responsive layout and others.

Download | Demo | Web hosting 

Easily create your Online Store

Download free WooCommerce, the best e-commerce plugins to sell your physical and digital products on WordPress. [Recommended]

Recommended Resources

Find out about other recommended resources to help you build and manage your website.

Conclusion

Here ! That's it for this tutorial, we hope this article has helped you learn how to fix "Add Media" button not working on WordPress. Do not hesitate to share with your friends on your favorite social networks

However, you will also be able to consult our resources, if you need more elements to carry out your projects of creation of Internet sites, by consulting our guide on the WordPress blog creation.

If you have suggestions or remarks, leave them in our section Comments.

... 

This article features 2 comments

  1. The tips found here on the "Add Media" button issue saved me a lot of time and fixed an issue that no one could fix.

    Thank you very much!

Leave a comment

Your email address will not be published. Required fields are marked with *

This site uses Akismet to reduce unwanted. Learn more about how your comments data is used.

Back To Top
6 shares
Share3
tweet2
Save1