【问题标题】:WordPress, finding css for Roots themeWordPress,为 Roots 主题寻找 CSS
【发布时间】:2013-10-18 00:06:35
【问题描述】:

我雇了一个人为我创建了一个 WordPress 网站,http://www.brilliantzenaudio.com,我需要做一些改变。我是一名程序员(C++ 和 Python),所以我将自己尝试这些更改。显然,我雇用的那个人是基于 Roots 主题的 WordPress 网站。我一直在研究一些 php 代码,我注意到许多具有 id 和类的“div”元素,例如“header”等。我假设这些元素的样式来自某个 css 文件。我唯一能找到的是style.css。它除了 cmets 什么都没有!在哪里可以找到设置这些 div 元素样式的代码?

/*
Theme Name:         Roots
Theme URI:          http://www.rootstheme.com/
Description:        Roots is a starting WordPress theme made for developers that's based on HTML5 Boilerplate and Bootstrap. <a href="https://github.com/retlehs/roots/contributors">Contribute on GitHub</a>
Version:            6.4.0
Author:             Ben Word
Author URI:         http://benword.com/

License:            MIT License
License URI:        http://opensource.org/licenses/MIT
*/

【问题讨论】:

  • 根主题是一个很好的选择。

标签: php html css wordpress


【解决方案1】:

您可以在 /assets/css/app.css 中找到您的 CSS。 Roots 不使用style.css

root 主题将您所有的 css/图像等放入名为 assets 的文件夹中。

在 assets 中,您会找到一个名为 css 的文件夹。

在里面你会找到一个名为app.css的文件——如果他使用的是root主题,这就是他应该使用的文件。

注意:assets 文件夹可以位于您的 root 文件夹或 theme 文件夹中,具体取决于根主题的配置方式。

【讨论】:

    猜你喜欢
    • 2023-03-24
    • 1970-01-01
    • 1970-01-01
    • 2016-01-13
    • 2015-07-31
    • 2014-07-24
    • 1970-01-01
    • 1970-01-01
    • 2015-11-27
    相关资源
    最近更新 更多