简体   繁体   English

Wordpress“uploads / wp-less-cache / theme-less.css”文件定期恢复到旧状态

[英]Wordpress “uploads/wp-less-cache/theme-less.css” file reverting back to old state periodically

We have a client whose website we did on Wordpress. 我们有一个客户,我们在Wordpress上做过网站。 Admittedly, we are a little new to Wordpress. 不可否认,我们对Wordpress来说有点新鲜。 When adding CSS to the site, we put it in a CSS file located at 'uploads/wp-less-cache/theme-less.css'. 在向网站添加CSS时,我们将其放在位于'uploads / wp-less-cache / theme-less.css'的CSS文件中。

Now, we know this was wrong and we now have a child theme with a style.css to handle all custom CSS added to the site. 现在,我们知道这是错误的,我们现在有一个带有style.css的子主题来处理添加到网站的所有自定义CSS。

The problem now is that theme-less.css is periodically (around daily) reverting back to CSS that we do not want. 现在的问题是,theme-less.css定期(每天都会)恢复到我们不想要的CSS。 It is old CSS and it messes up the site. 它是旧的CSS,它弄乱了网站。 It is overriding the style.css on our child theme. 它覆盖了我们孩子主题的style.css。

If anyone has any information on this folder or file, where it comes from or how it changes, it would be very much appreciated. 如果任何人有关于此文件夹或文件的任何信息,它来自何处或如何更改,将非常感谢。

Thank you! 谢谢!

您可以使用!important规则强制在子主题style.css中使用您认为最重要的CSS规则。

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

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