Skip to content
Nazmul Nikhil
Menu

HTTPS Page Links to HTTP CSS (Ahrefs): Fix Blocked Stylesheets

Ahrefs flags secure pages that load stylesheets over HTTP. Browsers block them, so pages lose their styling. Here's how to switch to HTTPS.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
HTTPS Page Links to HTTP CSS (Ahrefs): Fix Blocked Stylesheets
Photo: Georg Bommeli on Unsplash

In short

Ahrefs flags "HTTPS page links to HTTP CSS" when a secure page loads a stylesheet with an http:// URL. Browsers treat CSS as active mixed content and block it, so the styles never apply. Change the stylesheet URL to HTTPS or host the file yourself.

Like scripts, stylesheets loaded over HTTP on an HTTPS page are blocked by browsers.

How to fix it

  1. Search the page source for href="http:// on <link rel="stylesheet"> tags.

  2. Load the same file with https://. If it works, update the tag.

  3. Check theme options, header code, and old font or icon library embeds.

  4. Look inside CSS files too: @import url(http://...) and url(http://...) for fonts and backgrounds.

WordPress: a database search-and-replace on http://yourdomain.com fixes most internal references; external ones need editing by hand.

Shopify, Webflow and Wix: check custom code for old HTTP font or library links.

Custom builds: use relative paths for your own files and HTTPS URLs for all third-party ones.

This guide isn't affiliated with or endorsed by Ahrefs.

Sources and references

TAGSAhrefs Site AuditHttps page http cssMixed content cssHttp stylesheet blocked
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Technical SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com