Mixed Content Warnings in HTML Sites: Find and Fix http:// Links
After moving to HTTPS, leftover http:// links to images, scripts or styles cause warnings. Find them and change them to https://.
Mixed content means a page loaded over https:// still pulls something over plain http://, such as an image, script or stylesheet. Browsers may block that item or remove the padlock, so images disappear or the site looks broken.
Step 1: Find the offending links

Open the page in Chrome, press F12 and look at the Console tab. It lists each blocked or insecure request, for example "Mixed Content: The page was loaded over HTTPS, but requested an insecure image". It names the full URL.
Step 2: Search your files

In your editor or File Manager, search the site for http://. Pay attention to attributes such as src="http://, href="http:// and CSS url(http://. Ignore normal outbound links and XML namespaces such as http://www.w3.org, which are not loaded.
Step 3: Change them

- If the other site supports HTTPS, change
http://tohttps://. - For your own files, you can use a path from the site root, like
/images/logo.png. - If the other site does not support HTTPS, host the file yourself or remove it.
Step 4: Check CSS, JavaScript and third-party code

Old embed codes, widgets and fonts are common sources. Also check CSS files, since background images are easy to miss.
Step 5: Redirect HTTP to HTTPS

Make sure http:// addresses redirect to https:// so visitors do not end up on the old version.
Test
Reload with the Console open. When no mixed content warnings remain, the padlock shows normally. A tool such as "Why No Padlock" can scan a URL too.
WordPress note
On WordPress, links usually live in the database. A search-and-replace tool or plugin changes them there, and a backup should come first.
Still stuck?
If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.
Related guides
- What Is an SSL Certificate Authority and Chain of Trust
- What Is a Domain Registrar vs Web Host vs DNS Host
- What Does 'Not Secure' Mean in the Browser?
- Too Many Redirects With Cloudflare: Flexible SSL Loop Fix