How To Fix Images Not Showing In Divi Mixed Content Error Tutorial By Pee Aye Creative

How To Fix Images Not Showing In Divi (Mixed Content Error)

In this tutorial I will show you how to fix the issue of images are not showing on your Divi website, often caused by a mixed content error.

Join subscribers on our YouTube channel and enjoy other Divi video tutorials!

Probable Causes For Missing Images

There are two main reasons that an image may not be showing on your Divi website. Both are related to the URL of the image path. Both can be fixed in a similar way, and this guide will help you.

1. Wrong Image Path

If you have migrated the website from another domain, staging site, subdomain, or other development site, the URL path of the links and images may still be referring to the old domain.

2. Mixed Content Error

This second cause is related to the SSL certificate, and happens if some content on your site starts with “http” while others starts with “https.” This could actually be related to the wrong image path also, if the site was migrated and the previous site and current site had different SSL status. 

Checking The Error

The issue could be related to either of the things mentioned, so let’s determine which one. This is easy to do, and I will teach you the method I use.

Right-click on an image on your site that is showing the missing image icon and select the “Open image in new tab” option. This will open the URL path of the image in a new window. There you can check and clearly see if the path is the same as the current website or not.

To check the error, go onto the page where the images are not loading and open the Console tab of the browser developer tools (right-click, choose “inspect” then Console). The error will display in the Console and give you some basic information about it. For example, if it is an issue with mixed content, the error message will start with Mixed Content and after say, “the page at https://www.example.com is loaded over HTTPS, but requested an insecure image http://www.imageurl and this content should also be served over HTTPS.”

If you are seeing this message, then it is definitely a Mixed Content error that is causing the issue. Otherwise, if the domain of the image when you view it is a different URL such as from a site you migrated from, then you will need to replace the URL of the images in the database.

Error Resolution

To fix either of these errors, you need to change the URL of the image in the WordPress database.  There are various free plugins in the WordPress plugin repository to help with this. You can check the recommendations in our other article linked below.

For images that simply have a mixed content error but the rest of the file path is your own domain, you can sometimes find settings in your hosting account to force HTTPS for the website content. Doing so will fix the issue, but it’s more like a temporary fix and not the real solution. Often, the HTTPS version of the image already exists and this just requires adding an “s” to links – http:// to https:// with the method in the article below. 

Be sure to check our video and written guide about this How To Replace WordPress URLs.

How To Replace URLs In A WordPress Website Tutorial by Pee Aye Creative

Once the URLs are updated, the images should show fine and no longer have the issues. As always, be sure to clear all cache after this process.

Last updated Sep 12, 2022 @ 11:49 pm

Subscribe

Each month we send out a roundup email newsletter with the latest tutorials, product updates, helpful resources, and any other industry or personal news. Occasionally we send an extra separate email here and there if we just can’t wait! So that’s what you will get if you subscribe, and you can always unsubscribe at any time if you just can’t take it anymore 🙂

Please share this post!

Nelson Lee Miller (aka The Divi Teacher)

Nelson is the owner of Pee-Aye Creative in the beautiful state of Pennsylvania. He loves helping small businesses, exploring outdoors, building websites with Divi, and teaching others.

Leave A Response!

By commenting you agree to our Blog & YouTube Comments Policy

0 Comments

Submit a Comment

Your email address will not be published.

Recent Posts

0

Your Cart