Skip to content

Instantly share code, notes, and snippets.

@jbd91
Created January 18, 2021 23:25
Show Gist options
  • Save jbd91/085fb7f7949ad17e6e521c5145c198c3 to your computer and use it in GitHub Desktop.
Save jbd91/085fb7f7949ad17e6e521c5145c198c3 to your computer and use it in GitHub Desktop.
Pantheon Avada broken CSS file issues
// This error occurred when transferring the Avada theme from an external host to pantheon. There was a MIME type error followed by a 404 on the homepage. I believe the random string pantheon uses for file struture differed from the other pages of the site.
Make sure WP_cache is off and added the addition if statement below to fix.
//define('WP_CACHE', true);
if (isset($_ENV['PANTHEON_ENVIRONMENT'])) {
define('FS_METHOD', 'direct');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment