{"id":9124676,"date":"2017-05-12T11:37:55","date_gmt":"2017-05-12T11:37:55","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/css-not-loading-for-https\/"},"modified":"2017-05-12T11:37:55","modified_gmt":"2017-05-12T11:37:55","slug":"css-not-loading-for-https","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/css-not-loading-for-https\/","title":{"rendered":"CSS not loading for HTTPS"},"content":{"rendered":"<p>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.<\/p>\n<p>Fix is easy. Replace all occurrences of &#8220;WP_PLUGIN_URL&#8221; with the function &#8220;plugins_url()&#8217;<\/p>\n<p>https:\/\/wordpress.org\/ideas\/topic\/wp_plugin_url-doesnt-take-ssl-into-account<\/p>\n","protected":false},"template":"","class_list":["post-9124676","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9124676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9124676\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9124676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}