Green Hat Expert

  • Home
  • Social Media
    • Instagram
    • TikTok
    • Snapchat
    • Facebook
    • YouTube
    • Twitter
  • Messaging
    • Discord
    • Telegram
    • Whatsapp
  • About
  • Submit Guest post
You are here: Home / Archives for cannot add images to wordpress

How to Fix Add Media Button Not Working in WordPress

Last Updated on May 2, 2018 By Arsalan Rauf

Recently I have found this issue that ‘Add Media’ button on my WordPress site suddenly stopped working. This problem does not show any warning or error that leaves the user in dark about why their ‘Add Media’ button is not working. In this post, I shall show you how to easily fix the ‘Add Media’ button not working issue in WordPress site.

What causes the WordPress ‘Add Media’ Button to Stop Working?

Usually, this problem occurs due to conflicting scripts or stylesheets loaded by WordPress themes or plugins installed on your website. The default behavior of WordPress site is to load all needed stylesheets and scripts by combining the requests.

It is usually done in the admin area of WordPress to improve the speed and performance of website.

The post editor of WordPress uses JavaScript for all buttons available on the screen including Add Media button. A conflict can stop JavaScript from working and it will disable “Add Media” button.

add media button

After this discussion, let’s see how to troubleshoot and fix the Add Media button not working problem in WordPress.

Fixing Add Media Button Not Working Issue in WordPress

Add the following code to your wp-config.php file to fix it quickly. You need to edit wp-config.php file to add this code just before the line that says. That is it, stop editing and enjoy blogging.

1
define('CONCATENATE_SCRIPTS', false );

This code will allow WordPress to load each script separately that helps the JavaScript to avoid conflict with other scripts and the core WordPress features.

After doing it, go to the post edit screen to observe if the media button is working as expected or not.

Note: Adding this code is not a proper long-term solution because you still have a script that is causing the issue. Using the inspect tool is an easier way to find the source of the problem. It will display you console errors that can lead you to the source of the conflict or problem.

Do not forget to see our guide on Best Managed WordPress hosting.

I also suggest that you do this on your staging site instead of a live website.

You need to begin with deactivating of all your WordPress plugins and then check whether the Add Media button is functional or not. If it does, then this shows that one of your plugins was creating the problem.

deactivate all plugins

Now activate the plugins one by one, after the activation of plugin, check the Add Media button. It will help you to find out which plugin is causing the problem. After finding the plugin that is causing issues, replace it with another plugin or ask the plugin author for help.

If the deactivation of plugins does not solve the issue, then the next step is to switch to the default WordPress theme like twenty seventeen.

switch default theme

After switching to the default theme solves the issue for you, it means that your theme was causing the conflict. You can ask theme author for support or switch to another WordPress theme.

After finding the source of the problem on your staging site, you can apply the fix on your live WordPress website too.

I hope that you liked the article and it helped you to learn how to fix Add Media button not working in WordPress.

Arsalan Rauf
Arsalan Rauf

Arsalan Rauf is an entrepreneur, freelancer, creative writer, and also a fountainhead of Green Hat Expert. Additionally, he is also an eminent researcher of Blogging, SEO, Internet Marketing, Social Media, premium accounts, codes, links, tips and tricks, etc.

www.greenhatexpert.com

Filed Under: Blogging, Guide Tagged With: add media not working wordpress, can t add media to wordpress, cannot add images to wordpress, no add media button on twitter, wordpress 4.8 add media not working, wordpress 4.9 add media not working, wordpress add media does not insert into post, wordpress buttons not working


Recent Posts

  • Free DeepSeek Accounts 2025
  • Free Zoho Mail Accounts 2025
  • Acudepot Discount Codes 2025
  • Free Blackshot Accounts 2025
  • Free GMX Email Accounts 2025
  • Songtrust Discount Codes 2025
  • Uzicases Discount Codes 2025
  • Cardillo Promo Codes 2025
  • Free DriverFix License Keys 2025
  • Avast Secureline VPN Activation Codes 2025

Recommended Posts

Create a Gmail Account Without Phone Number

Free Course Hero Account

Crunchyroll Accounts

Cracked Apps

Free Pokemon Go Accounts
Onlyfans Free Accounts
Free Chegg Accounts
Free Paypal Accounts
Free Gmail Accounts
Funny Steam Names

Categories

  • Apps
  • Apps for PC
  • Blogging
  • Discord
  • Facebook
  • Gaming
  • Grammar
  • Guide
  • How to
  • Instagram
  • Messaging
  • OnlyFans
  • Pinterest
  • Reddit
  • SEO
  • Snapchat
  • Social Media
  • Spotify
  • Steam
  • Telegram
  • TikTok
  • Twitch
  • Twitter
  • Whatsapp
  • WordPress
  • YouTube
  • Home
  • Social Media
  • Messaging
  • About
  • Submit Guest post