简体   繁体   English

WordPress的创世纪主题错误的MIME类型

[英]Wordpress Genesis Theme Wrong MIME Type

I built a childtheme based on the Wordpress Genesis Theme. 我基于Wordpress创世纪主题构建了一个子主题。 I deployed it on my testing server and it worked. 我将其部署在测试服务器上,并且可以正常工作。 When I uploaded it to the client's site though, it breaks. 当我将其上传到客户的站点时,它中断了。

The problem is with loading the stylesheet from the childtheme. 问题在于从childtheme加载样式表。 The error is: 错误是:

Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://buyinginbergen.com/wordpress/wp-content/themes/CustomBergenTheme/style.css/?ver=1.9.0". 资源被解释为样式表,但以MIME类型text / html传输:“ http://buyinginbergen.com/wordpress/wp-content/themes/CustomBergenTheme/style.css/?ver=1.9.0”。

Obviously the site is http://buyinginbergen.com/wordpress/ . 显然,该网站是http://buyinginbergen.com/wordpress/ I haven't been able to figure out how to specify the file type, especially because I don't have FTP access so I had to build elsewhere before deploying. 我一直无法弄清楚如何指定文件类型,尤其是因为我没有FTP访问权限,因此在部署之前必须在其他地方进行构建。

Thoughts? 有什么想法吗?

We had a similiar issue - the mime type of the css files the server sent back were wrong. 我们有一个类似的问题-服务器发回的css文件的mime类型错误。 We solved it by adding: 我们通过添加以下内容解决了该问题:

AddType text/css .css

to the .htaccess file in the wordpress root folder. 到wordpress根文件夹中的.htaccess文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM