WeWP
ComparePricingFeaturesContact UsLoginTry For Free
  • Knowledge Base
  • How to Fix "Not Secure" or "Not Private" Connection Errors
  • How to Add Cron Jobs
  • Connect to Your Server via SSH on Windows
  • Keeping Servers and Sites Secure
  • Troubleshooting Cloudflare Issues
  • Install WordPress Themes and Plugins with Composer
  • How To Fix Mixed Content Issue For WordPress
  • What Is a DDoS Attack and How to Prevent It?
  • How to Enable WordPress Debug Mode
  • How to Fix the “MySQL server has gone away” Error
  • How to Configure WP Mail SMTP Plugin to Send Emails
  • How To Fix the “HSTS Missing From HTTPS Server” Error
  • How to Check Your Domain's Expiration Date
  • How to Use and Serve WebP Images in WordPress
  • Email security best practices for using SPF, DKIM, and DMARC
  • What is a LEMP (Linux, Nginx, MySql, PHP) Stack?
  • Deploying Web Applications with NGINX HTTP Server
  • How to Configure WP Rocket Plugin for WordPress
  • How to Check SPF and DKIM Records with WeWP
  • Understanding FTP vs SFTP: Which Should You Use for Secure File Transfers?
  • What is a DMARC record and How to Set it Up?
  • How to Set Up Cloudflare’s Free CDN for WordPress
  • How to check your Ubuntu version (Using the command line and GUI)
  • How to Download Backups from WeWP panel
  • How to Change the PHP Version of Your Hosting Plan
  • Troubleshooting Cloudflare Universal SSL
  • How to Fix “Your Domain Is Not Pointing” Error
  • SSH vs SSL: What’s the Difference?
  • WordPress Search and Replace
  • How to Force HTTPS on WordPress Websites
  • How to Fix a Failed Lifetime SSL Installation
  • How to Redirect HTTP to HTTPS
  • How to Monitor System Processes Using htop Command
  • Varnish vs Nginx FastCGI Cache: Which is Best for WordPress?
  • What Is the Database information_schema on phpMyAdmin?
  • How to Disable WP-Cron for Faster Performance
  • How to fix the ERR_SSL_PROTOCOL_ERROR
  • How to fix the NET::ERR_CERT_AUTHORITY_INVALID error
  • How to Add Expires Headers in WordPress
  • How to fix the “There has been a critical error on your website” error
  • How to Fix ERR_QUIC_PROTOCOL_ERROR in Chrome Browser
  • What Is Localhost? And How Does It Apply to WordPress?
  • How to Fix a Mixed Content Warning on Your Website
  • How to Fix the "Connection Timed Out" Error in WordPress
Powered by GitBook
On this page
  • What is Mixed Content?
  • How To Fix Mixed Content Issues for WordPress
  • Case #1
  • Verify That The Issue Has Been Fixed

Was this helpful?

How To Fix Mixed Content Issue For WordPress

PreviousInstall WordPress Themes and Plugins with ComposerNextWhat Is a DDoS Attack and How to Prevent It?

Last updated 1 year ago

Was this helpful?

What is Mixed Content?

Mixed content refers to a situation where a web page is served over HTTPS (Hypertext Transfer Protocol Secure), which is a secure protocol for transmitting data over the internet, but some of the resources on that page (such as images, scripts, stylesheets, etc.) are loaded over HTTP (Hypertext Transfer Protocol), which is not secure.

In simpler terms, mixed content occurs when a web page is accessed securely (via HTTPS), but some elements within the page are loaded using an insecure connection (HTTP). This can pose a security risk because, while the main page may be encrypted, the insecure resources can be intercepted or modified by attackers, potentially compromising the security and integrity of the entire page.

Browsers typically indicate the presence of mixed content to users by displaying warnings, such as a padlock icon with a warning triangle or an exclamation mark in the address bar. These warnings alert users that some parts of the page are not secure, which can erode trust and deter visitors from engaging with the website.

To ensure a secure browsing experience and maintain the integrity of your website, it's important to fix mixed content issues by ensuring that all resources are loaded securely via HTTPS.

How To Fix Mixed Content Issues for WordPress

Fixing mixed content issues in WordPress involves ensuring that all resources on your website (such as images, stylesheets, scripts, etc.) are loaded securely via HTTPS rather than HTTP. Here's a step-by-step guide to fix mixed content issues in WordPress:

Case #1

In case you are seeing the error “Loading Mixed (insecure) display content ” with a yellow colour in the browser’s console tab, please follow these steps

Step #1

The first step is to identify which resources are being loaded over HTTP instead of HTTPS. Press Ctrl+Shift+I (Or right-click at the blank space and select Inspect Element) to enter your browser’s Developer Mode. Click on the Network tab and then reload the page. Look for warnings or errors related to mixed content in the console or network tab.

Step #2

Browse to your WordPress website Admin Panel and enter your admin credentials to log in.

Go to your WordPress dashboard and navigate to Settings > General. Make sure that both the "WordPress Address (URL)" and "Site Address (URL)" fields start with "https://" rather than "http://". Save your changes.

Step #3

Go to the Plugins section and Theme section. Some themes and plugins may have hardcoded HTTP links. Check your theme settings and plugin settings for any references to HTTP URLs and update them to HTTPS.

Step #4

If you have hardcoded HTTP links in your content (such as in posts, pages, or widgets), you'll need to update them manually. Use a plugin like "Search Replace" to search for HTTP URLs in your database and replace them with HTTPS URLs.

Go to the Plugins section and search for the “Search and Replace” plugin. Install and activate this plugin.

Step #5

Go to your plugin settings and paste the URL in each of the two text boxes. Remember to replace HTTP with HTTPS in the second text box. Finally, tick the two Checkboxes and click on the Go button. And you are done!

You can verify the website by reloading the web page. If you are not seeing any error “Loading Mixed (insecure) display content ” in the browser's console tab, then your website is fully secured now.

After following the above steps, if you are still facing the issue then please follow the below steps

  1. Update CSS and JavaScript Files:

If your theme or plugins load CSS or JavaScript files using HTTP, you'll need to update those references. Look for these files in your theme's directory or your plugins' directories and update the URLs to use HTTPS.

  1. Update Images and Other Media:

Make sure that all images and other media files are being loaded via HTTPS. If you have hard-coded image URLs in your content, update them to use HTTPS. You can also use a plugin like "Velvet Blues Update URLs'' to update media URLs in your content.

  1. Use Content Security Policy (CSP):

Implement a Content Security Policy on your website to mitigate mixed content issues and enhance security. CSP allows you to define which resources can be loaded on your website, helping to prevent mixed content vulnerabilities.

  1. That's it! Now you should clear the following caches:

1. PageCache

2. ObjectCache

3. CDN Cache

4. Caching Plugin’s Cache

  1. Test Your Site:

After making these changes, thoroughly test your website to ensure that all mixed content issues have been resolved.

Verify That The Issue Has Been Fixed

Now that the plugin has resolved the Mixed Content issue, it is easy to verify that your WordPress website no longer faces this issue.

Visit the website and enter the URL of your website. Click the Test Page button to start the process. You will see the following success message:

For this, use an online tool:. This tool will check your website and inform you about the success of the process.

That’s it! We hope this article was helpful. If you need any help, then feel free to raise your query on .

Why No Padlock
WeWP Support Ticket