Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 xenforo,并且我尝试将一个类添加到我想放在不同位置的元素中,默认情况下它没有类。
我试图在 templates.xml 中编辑它,但它没有改变
所以你必须去外观> (你的主题) >模板
从这里你编辑特定的模板文件
您可以创建 CSS 模板。然后在包含您要添加新类的元素的模板中,添加您刚刚使用以下语句创建的 CSS 模板 <xen:require css=“yourTemplate.css” />:
<xen:require css=“yourTemplate.css” />
而已。这里有一些图片来描述:
第一步:创建 CSS 模板
第二步:将其添加到您的模板中