Fixing mixed content warnings
Mixed content happens when a page loads over https:// but some of its images, scripts or stylesheets still load over http://. Browsers then show a broken padlock, a “Not secure” label, or block parts of the page.
Find the insecure items
Section titled “Find the insecure items”- Open the page in Chrome, Edge or Firefox.
- Press F12 to open developer tools and select the Console tab.
- Look for Mixed Content warnings. Each one shows the
http://address that needs fixing.
You can also use a free online scanner such as whynopadlock.com.
WordPress
Section titled “WordPress”- In Settings → General, make sure both addresses start with
https://. - Update old links stored in your content: install a search-and-replace plugin such as Better Search Replace, and replace
http://example.comwithhttps://example.comin all tables. Run a dry run first, and back up your database. - Clear your cache. With LiteSpeed Cache, click Purge All.
- Check theme settings, page-builder settings and widgets for hard-coded
http://image or logo links.
Plugins such as Really Simple SSL can fix many mixed content issues automatically, but fixing the links themselves is the more reliable long-term solution.
Joomla
Section titled “Joomla”- In System → Global Configuration → Server, set Force HTTPS to Entire Site.
- In
configuration.php, if$live_siteis set, change it tohttps://. - Update
http://links in articles, modules and template settings. - Clear the cache in System → Clear Cache.
OpenCart
Section titled “OpenCart”- Edit
config.phpandadmin/config.phpin File Manager. Change everyhttp://address (for exampleHTTP_SERVERandHTTPS_SERVER) tohttps://. - In the admin area, go to System → Settings → Server and set Use SSL to Yes.
- Update
http://links in theme and module settings, then refresh the cache from the Dashboard.
PrestaShop
Section titled “PrestaShop”- In the back office, go to Shop Parameters → General.
- Turn on Enable SSL, save, then turn on Enable SSL on all pages and save again.
- Update
http://links in theme and module settings, and clear the cache in Advanced Parameters → Performance.
Other websites
Section titled “Other websites”Search your site’s files for http:// and change links to your own site to https:// (or to relative links, such as /images/logo.png). For external resources, use the https:// version. If an external service doesn’t support HTTPS, replace or remove it.