Home › Forums › Backend Issues (wp-admin) › ACF admin CSS/JS not loading › Reply To: ACF admin CSS/JS not loading
I had the same issue here and dug a little deeper, hoping to avoid having to edit the plugin. For me, as with @andyford, the issue only occurred on my Media Temple environment. Their infrastructure was confusing the WordPress is_ssl()
function, which was firing false
at the time the asset urls were being generated (from functions used in ACF like content_url()
and plugins_url()
).
Good news is, there is a solution in the WordPress codex. Just add the following to your wp-config.php
file:
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS'] = 'on';
This solved my mixed-content issues without having to edit the plugin.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.