Cant get CSS and JS files to load with HTTPS
-
My site loads fine under http, but when i setup the ssl cert and visit the home page there is no CSS loaded. When i look at the console the browser is blocking all JS and CSS files due to Mixed Content errors.
How do i fix this? I was always able to make this work in the past by changing the following
define(‘WP_HOME’, ‘https://’ . $web_site_url);
define(‘WP_SITEURL’,’https://’ . $web_site_url);This doesnt work though. All of the dynamic links and stuff have https in front of them, but all of the external css and javascript files are screwing up.
What is causing this? I cant rely on a plugin to do this for me, I dont want to be loading more processing work on my site. This is surely a simple issue to fix
- The topic ‘Cant get CSS and JS files to load with HTTPS’ is closed to new replies.