get_template_directory not working with SSL
-
I recently switched to SSL through CloudFlare. However when I changed the URLs with in WordPress’s settings screen, most of the style sheets and js aren’t loaded. When viewing the source code I can see that all of the internal links have changed to the HTTPS version like they should. However none of the style sheets or js are. This is problematic because most browsers block content from non-https resources on https pages.
It looks like for some odd reason get_template_directory is not recognizing the HTTPS urls. I thought that was the point of the get_template_directory function in the first place. I have tried disabling all plugins and it still happens. If anyone has any ideas of whats going on, or how to fix, I’d be very grateful. Thanks!
- The topic ‘get_template_directory not working with SSL’ is closed to new replies.