Solved: SSL Breaks WordPress CSS | CSS not working when redirects to HTTPS | css not loading after ssl

solved ssl breaks wordpress css

There are some cases where we implement activated the SSL for our domain but entire site breaks.

Why its happening?

This is because website is served with https:// but CSS file is still referencing http:// instead https:// .

It’s known as a ‘Mixed Content’ error

How to resolve?

To resolve the issue please follow below step.

  1. Open FTP or file manager in cPanel
  2. Open file wp-config.php, file will could be found in root.
  3. Add line $_SERVER[“HTTPS”] = “on”;

See in action

Hope it will help!