简体   繁体   English

CSS /更少的文件无法加载

[英]CSS / less files not loading

I have an issue on my site where suddenly the styling seems to be turned off...I have not removed any link to the stylesheet files, yet it seems as if they are not loaed. 我的网站上出现一个问题,其中样式似乎突然关闭了……我尚未删除指向样式表文件的任何链接,但似乎它们没有被删除。 How would you fix this issue? 您将如何解决此问题?

I noticed through Chrome that I get an uncaught reference error about an infinite_scroll not being defined, however I deactivated this plugin through the wordpress dashboard and I saw no effect. 我通过Chrome注意到,关于未定义infinite_scroll的信息,我收到了未捕获的参考错误,但是我通过wordpress仪表板停用了此插件,但没有看到任何效果。

To use .less file for styling you need to compile it into a .css file. 要使用.less文件进行样式设置,您需要将其编译为.css文件。 So don't include .less like a regular stylesheet, but include style.css, which has to be generated by a LESS preprocessor. 因此,不要像常规样式表那样包含.less,而应包含必须由LESS预处理程序生成的style.css。

Your source style.less file has a syntax error in .inboxReminder {} , there's #position:absolute; 您的源style.less文件在.inboxReminder {}中存在语法错误,其中#position:absolute; . Remove the hash and it compiles. 删除哈希并编译。 (You can comment out single lines in LESS using // ). (您可以使用//注释掉LESS中的单行)。

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

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