Title: CSS not loading for HTTPS
Last modified: May 12, 2017

---

# CSS not loading for HTTPS

 *  [abailey](https://wordpress.org/support/users/abailey/)
 * (@abailey)
 * [9 years ago](https://wordpress.org/support/topic/css-not-loading-for-https/)
 * In the WordPress plugin WP_PLUGIN_URL is used to load the CSS etc. Because it
   is a constant it can not follow a change from http to https. The browser rejects
   it as cross-protocol.
 * Fix is easy. Replace all occurrences of “WP_PLUGIN_URL” with the function “plugins_url()’
 * [https://wordpress.org/ideas/topic/wp_plugin_url-doesnt-take-ssl-into-account](https://wordpress.org/ideas/topic/wp_plugin_url-doesnt-take-ssl-into-account)

The topic ‘CSS not loading for HTTPS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/media-element-html5-video-and-audio-
   player.svg)
 * [MediaElement.js - HTML5 Video & Audio Player](https://wordpress.org/plugins/media-element-html5-video-and-audio-player/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-element-html5-video-and-audio-player/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-element-html5-video-and-audio-player/)
 * [Active Topics](https://wordpress.org/support/plugin/media-element-html5-video-and-audio-player/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-element-html5-video-and-audio-player/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-element-html5-video-and-audio-player/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [abailey](https://wordpress.org/support/users/abailey/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/css-not-loading-for-https/)
 * Status: not resolved