Title: CSS Mixed Content
Last modified: October 22, 2021

---

# CSS Mixed Content

 *  [goldgothe](https://wordpress.org/support/users/goldgothe/)
 * (@goldgothe)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/css-mixed-content/)
 * Hello.
    I had AAM on my Website on a test Server, everything was fine. I then
   placed it on my test Server, and i got 2 error:
 * Mixed Content: The page at ‘[https://my-website/wp-admin/admin.php?page=aam&#8217](https://my-website/wp-admin/admin.php?page=aam&#8217);
   was loaded over HTTPS, but requested an insecure stylesheet ‘[http://my-website/wp-content/plugins/advanced-access-manager/media/css/vendor.min.css&#8217](http://my-website/wp-content/plugins/advanced-access-manager/media/css/vendor.min.css&#8217);.
   This request has been blocked; the content must be served over HTTPS.
    Same for
   avanced-access-manager/media/css/aam.css
 * Don’t know why, this is the only plugin where i have these type of error.
 * I checked where these css files where declared: in
    wp-content/plugins/advanced-
   access-manager/application/Backend/tmpl/metabox/iframe-header.php line 25 and
   line 26. So i replaced <link rel=”stylesheet” href=”<?php echo AAM_MEDIA; ?>/
   css/vendor.min.css” type=”text/css” media=”all” /> to <link rel=”stylesheet” 
   href=”/wp-content/plugins/advanced-access-manager/media/css/vendor.min.css” type
   =”text/css” media=”all” />
 * and <link rel=”stylesheet” href=”<?php echo AAM_MEDIA; ?>/css/aam.css” type=”
   text/css” media=”all” /> to
    <link rel=”stylesheet” href=”/wp-content/plugins/
   advanced-access-manager/media/css/aam.css” type=”text/css” media=”all” /> It’s
   a temporary fix, this modification will be overriten when a new update will be
   done. Why do i only have these type of Mixed Content Problem only on this plugin?

Viewing 1 replies (of 1 total)

 *  [mike_piercy](https://wordpress.org/support/users/mike_piercy/)
 * (@mike_piercy)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/css-mixed-content/#post-14995949)
 * Hi [@goldgothe](https://wordpress.org/support/users/goldgothe/),
 * I’m facing the same issue on one of my sites. I also put a temporary measure 
   in. From what I can tell, AAM_MEDIA (which is defined in the aam.php in the plugin’s
   root directory) is using plugin_url() to return the location of the plugin, but
   when this is used, it’s returning http and not https.
 * My temp fix update was to rewrite that definition with an absolute url, but same
   as you, it’s a temporary measure that needs to be fixed.
 * [This is where I previously replied.](https://wordpress.org/support/topic/https-issue-with-aams-css-files/)
   
   [also here.](https://wordpress.org/support/topic/https-and-aam-css-files-mixed-contents-issue/#post-14995961)
 * [@vasyltech](https://wordpress.org/support/users/vasyltech/) any thoughts?
    Mike
 * Mike

Viewing 1 replies (of 1 total)

The topic ‘CSS Mixed Content’ is closed to new replies.

 * ![](https://ps.w.org/advanced-access-manager/assets/icon-256x256.png?rev=3447421)
 * [Advanced Access Manager – Access Governance for WordPress](https://wordpress.org/plugins/advanced-access-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-access-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-access-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-access-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-access-manager/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [mike_piercy](https://wordpress.org/support/users/mike_piercy/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/css-mixed-content/#post-14995949)
 * Status: not resolved