If you find yourself grappling with the ‘Add Media’ button on your WordPress site and are uncertain about the reasons or solutions, worry not – this article is tailored to assist you. We understand how frustrating it can be when the ‘Add Media’ button refuses to cooperate in WordPress. Our team at Dieutek developments, a reputable Website & Software Company in Kakkanadu, Ernakulam (Kochi), has compiled this guide to offer practical solutions to resolve the glitch and get your media uploads back on track.”
Causes of the Add Media Button Not Working Error in WordPress:
Plugins or themes in WordPress can load special codes or designs. If some of these codes clash, it can cause the ‘Add Media’ button to stop working. In the WordPress admin area, different requests are grouped together to load all the needed codes and designs, making the site faster and more efficient.

The WordPress post editor uses JavaScript to show buttons like the ‘Add Media’ button. If something goes wrong with JavaScript due to a conflict, the ‘Add Media’ button will become inactive and won’t work.
Now that you understand why the ‘Add Media’ button can stop working in WordPress, let’s explore some solutions to fix this problem. These are the recommended fixes that we believe can help you resolve the issue.
How to Fix the WordPress Add Media Button Not Working Error
If you’re facing the problem of the WordPress upload image button not working, there are several methods you can try to fix it. You can edit the wp-config.php file using FTP, deactivate plugins, or change your theme.
Use cPanel
To use this method, you’ll need to go to the main WordPress folder and insert a line of code into the wp-config.php file. To do this, log in to cPanel and open the File Manager.

Now, locate the wp-config.php file in the public_html directory. Afterward, right-click on it and select the Edit option.

After that, enter this code to the bottom of the file, above the “/*.
define(‘CONCATENATE_SCRIPTS’, false );
Before you make any changes, make sure to protect your files and create a backup. You should also clear all your caches, like those in your web browser and plugins, as well as the server cache.
Once you’re finished with the settings, save all your changes. The code makes WordPress handle one task at a time, so the ‘Add Media’ function can upload content without causing problems with other parts of the website.
Keep in mind that this is just a temporary fix and doesn’t address the real issue. Additionally, using this code may slow down your website, which can harm your SEO performance.
Deactivate WordPress Plugins
One of the main reasons the file upload button might not work well is because of plugins. To check if plugins are the problem, you can:
1.Log into your WordPress admin dashboard and open Plugins

2. Tick on the box next to the Plugin column
3. Choose the Deactivate option in Bulk actions to make all plugins inactive at once

Visit a page or post to check whether the Add Media button works. If yes, the error certainly derives from one of your plugins.
The next step is re-activating them one by one to find out which plugin is the original reason. Now, it’s necessary to contact the plugin developer to troubleshoot the mistake or install better-coded alternatives with similar features.
In case the error still exists, you must move to the next solution.
Test Current WordPress Theme
When grappling with the ‘Add Media’ button glitch, consider exploring the role of your chosen theme as another potential culprit. If suspicions point to the theme as the source of the issue, a practical troubleshooting step is to switch to a standard WordPress theme. Navigate to ‘Appearance’ → ‘Themes’ and simply click ‘Activate’ on the preferred theme for assessment. This straightforward approach helps isolate and evaluate the theme’s impact on the ‘Add Media’ error. As your dedicated Website & Software Company based in Kakkanadu, Ernakulam (Kochi), we strive to provide valuable insights to enhance your digital journey.

In case there is no more error, your current theme is the reason. So, seek support from the theme developers or simply use another one.
Remove Add Media For Non-Admins
You have the power to choose who can use the ‘Add Media’ button and add files to your content. For instance, you can allow only admin users to upload files, while others won’t be able to do so. To set this up, go to the ‘Theme Editor’ in the ‘Appearance’ section of your admin area.

After that, go to the functions.php file in the right-side menu and paste the following code into it.
function RemoveAddMediaButtonsForNonAdmins(){
if ( !current_user_can( ‘manage_options’ ) ) {
remove_action( ‘media_buttons’, ‘media_buttons’ );
}
}
add_action(‘admin_head’,
‘RemoveAddMediaButtonsForNonAdmins’);
Resolving the Issue of Add Media Button Not Working in WordPress:
To fix the problem of the ‘Add Media’ button not working in WordPress, you can do the following:
- 1. Find your wp-config.php file.
- 2. Choose to edit the wp-config.php file.
- 3. Insert the code below into your wp-config.php file, just before the line that says ‘That’s all, stop editing! Happy blogging.
- define(‘CONCATENATE_SCRIPTS’, false );
Now, the website will load scripts one by one. This helps prevent future issues caused by conflicting JavaScript, buggy scripts, or WordPress features.
Here’s what you should do next:
- Reconnect to your WordPress website.
- Go to the post edit screen.
- The ‘Add Media’ button should work correctly now.
Now that we’ve fixed the problem temporarily, let’s find a more long-term solution. The above fix is just a quick one because there’s still a troublesome script causing issues.
To find and fix the source of the problem, follow these steps:
- Open the inspect tool.
- You’ll see a list of error messages in the console.
- Try to identify the source of the conflict here.
- With some troubleshooting, you can pinpoint the plugin or theme causing the error.
But before you do that, we recommend creating a staging site. A staging site is a copy of your website that you can use for testing. Go to your staging site and deactivate all your WordPress plugins.”

- See if the ‘Add Media’ button is working properly. If it is, then you need to figure out which plugin is causing the problem.
- Start by activating your plugins one by one.
- After turning on each plugin, check if the problem comes back.
- When you find the plugin that causes the issue, you can remove it and replace it with a different one.
- You can also reach out to the plugin’s author to see if they can provide a solution.
- If the issue persists even after checking the plugins, the next step is to look at your website’s theme. To do this, temporarily switch to a default WordPress theme.”

If switching to a different theme solves the problem, then it means your current theme is causing the error.
You can do one of two things:
- Use a different theme that doesn’t cause the issue.
- Reach out to the author of your current theme and ask for their help to fix it.
Once you’ve identified and fixed the problem on your staging site, you can apply the same solution to your live WordPress site.
To sum up
When encountering the ‘Add Media’ button malfunction in WordPress, various factors such as plugin conflicts, theme issues, or JavaScript discrepancies may be at play. To address this temporarily, consider editing the wp-config.php file. However, for a lasting solution, it is crucial to delve deeper into the root cause. A comprehensive approach involves deactivating plugins and testing themes on a staging site to precisely identify the issue. Once identified, apply the necessary fix to your live WordPress site. Skillful troubleshooting and pinpointing the root cause are vital steps in resolving the ‘Add Media’ button issue, ensuring seamless media uploads on your WordPress platform. As a trusted Website & Software Company based in Kakkanadu, Ernakulam (Kochi), we are committed to providing insights that empower your digital experience.
How We Can Support You?
With a rich legacy firmly rooted in Kakkanadu, Ernakulam (Kochi), and boasting over 12 years of industry expertise, we proudly stand as a prominent force in the IT sector, delivering cutting-edge and dependable services. Whether embarking on a new project, seeking support for existing systems, or requiring expert IT consultation, consider us your committed partners in achieving success. Beyond mere development, we actively contribute as your allies in progress. Our solutions are meticulously crafted to align with your unique objectives, and we collaborate closely with you to bring your vision to life.
For all your IT-related needs, including Website Development, Software Development, Mobile App Development, and expert consultation, don’t hesitate to reach out. Together, let’s unlock the full potential of technology and ascend to greater heights. As a reputable Website & Software Company based in Kakkanadu, Ernakulam (Kochi), we are dedicated to shaping your digital success story.
Frequently asked questions
Dieutek Developments is located in Kakkanadu, Ernakulam (Kochi), with over a decade of experience in delivering high-quality IT solutions.
Dieutek Developments provides a comprehensive range of IT services, including website development, website redesign, custom software development, ecommerce store development, web and mobile app development, and digital marketing.
Yes, Dieutek Developments specializes in custom software development, utilizing various technologies such as WordPress, PHP-based frameworks like Laravel and Zend, and JavaScript frameworks like React and Node.js to create robust and scalable web applications.
Certainly, Dieutek Developments offers concept-to-completion website development and website redesign services to cater to clients' specific needs.
Dieutek Developments excels in building ecommerce stores, providing customization options and expertise in integrating various platforms and tools, along with payment gateway integration both domestically and internationally.
Yes, Dieutek Developments offers mobile app development services for Android, iOS, Flutter, and hybrid platforms.
Absolutely, Dieutek Developments offers IT consultation services to assist clients in Kakkanadu, Ernakulam (Kochi), in aligning their IT strategies with their business goals.
Dieutek Developments has expertise in various industries, including Healthcare, Retail, E-commerce, Restaurants, Church, Education, NGO, Travel & Tourism, and Entertainment, providing tailored IT solutions for each sector.
Dieutek Developments boasts a team of 35+ professionals with over 13 years of experience in the IT industry, based in Kakkanadu, Ernakulam (Kochi).
To get in touch with Dieutek Developments for sales and business development queries, you can contact us at +91 7012287156.
Conclusion
Encountering issues with the ‘Add Media’ button in WordPress often results from conflicts with plugins, themes, or JavaScript complications. While a quick fix involves editing the wp-config.php file, for a lasting solution, it’s crucial to delve into the root cause through systematic troubleshooting of plugins and themes on a staging site. By addressing this concern effectively, you ensure a seamless experience for users during media uploads on your WordPress site. Leveraging our extensive expertise of over 12 years in the IT industry, our Kakkanadu, Ernakulam (Kochi) – based Website & Software Company is committed to providing comprehensive IT services. Whether you’re focused on Website Development, Software Development, Mobile App Development, or seeking expert consultation, we’re dedicated to empowering your success in the digital realm.


