Title: doesn&#039;t work if situ using HTTPS
Last modified: August 30, 2016

---

# doesn't work if situ using HTTPS

 *  Resolved [juggledad](https://wordpress.org/support/users/juggledad/)
 * (@juggledad)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/doesnt-work-if-situ-using-https/)
 * If you force the site to use HTTPS, the CSS will not be applied because the source
   link to the css is using HTTP.
 * Using FireBug in FireFox, I see the message
 * > Blocked loading mixed active content
 * [https://wordpress.org/plugins/my-custom-css/](https://wordpress.org/plugins/my-custom-css/)
 * This has forced me to remove the plugin and edit the style.css directly – which
   I’m sure is going to cause a problem in the future for the customer (i.e. an 
   update will wipe it out…sigh, I’d really like to use your plugin…)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Anonymous User 357386
 * (@anonymized-357386)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/doesnt-work-if-situ-using-https/#post-6730290)
 * I’ll try to fix as soon as possible! Thanks for report and sorry for this.
 *  Anonymous User 357386
 * (@anonymized-357386)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/doesnt-work-if-situ-using-https/#post-6730292)
 * can u try with this?
 * from (function at line 27):
 *     ```
       function mystylecss_url()
       {
       	$upload_dir = wp_upload_dir();
       	$mystylecss_url = $upload_dir['baseurl'];
       	return $mystylecss_url;
       }
       ```
   
 * to:
 *     ```
       function mystylecss_url()
       {
       	$upload_dir = wp_upload_dir();
       	$mystylecss_url = set_url_scheme($upload_dir['baseurl']);
       	return $mystylecss_url;
       }
       ```
   
 * i think with this will be ok!
 *  Thread Starter [juggledad](https://wordpress.org/support/users/juggledad/)
 * (@juggledad)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/doesnt-work-if-situ-using-https/#post-6730303)
 * Excellent! that works great! just sent you a tip.
 *  Anonymous User 357386
 * (@anonymized-357386)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/doesnt-work-if-situ-using-https/#post-6730305)
 * Thank’u, really appreciated 🙂
    I release this fix in next release!
 * Regards,
    S.N.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘doesn't work if situ using HTTPS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/my-custom-css_5e56b8.svg)
 * [My Custom CSS PHP & ADS](https://wordpress.org/plugins/my-custom-css/)
 * [Support Threads](https://wordpress.org/support/plugin/my-custom-css/)
 * [Active Topics](https://wordpress.org/support/plugin/my-custom-css/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-custom-css/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-custom-css/reviews/)

## Tags

 * [HTTPS](https://wordpress.org/support/topic-tag/https/)

 * 4 replies
 * 2 participants
 * Last reply from: Anonymous User 357386
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/doesnt-work-if-situ-using-https/#post-6730305)
 * Status: resolved