简体   繁体   English

我应该在哪个文件中用wordpress的roots启动主题编写样式表(更少)?

[英]In which fileshould I write style sheet(less) in roots starter theme of wordpress?

I am new in roots starter theme of wordpress . 我是wordpress的入门主题的新手。 In 'assets/less' folder, where should I write style sheet(There I found 4 files - _bootstrap.less,_global.less,main.less,_variables.less).Please anybody explain? 在“ assets / less”文件夹中,我应该在哪里写样式表(在那里我找到了4个文件-_bootstrap.less,_global.less,main.less,_variables.less)。请有人解释吗?

main.less is the file to edit. main.less是要编辑的文件。 The files with an _ prefixed are either dynamically generated or are static libraries which should not be amended. 带有_前缀的文件是动态生成的,或者是静态库,不应对其进行修改。

You should use @import within main.less to add in additional code. 您应该在main.less使用@import来添加其他代码。

当您向主题添加更多组件和布局时,为其创建新文件,然后在main.less中添加新的@import。

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

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