简体   繁体   English

如何在drupal主题中编辑htm / css?

[英]how to edit htm/css in drupal theme?

I have a Drupal theme, and I want to edit its HTML/CSS according to my needs. 我有一个Drupal主题,我想根据我的需要编辑它的HTML / CSS。 Can anybody tell me how I can change it? 谁能告诉我怎么改变它? (Specific file name?) (具体文件名?)

I have tried to change page.tpl.php but couldn't get any output. 我试图更改page.tpl.php但无法获得任何输出。

The file depends on what part of the page you're attempting to update. 该文件取决于您尝试更新的页面部分。 Here's a great visual of the file structure when it comes to theming: https://drupal.org/node/171194 这里有关于主题的文件结构的精彩视觉: https//drupal.org/node/171194

You'll be editing the html.tpl.php, page.tpl.php, and style.css files (or whatever you're calling your main CSS file). 您将编辑html.tpl.php,page.tpl.php和style.css文件(或者您正在调用主CSS文件的任何文件)。 Very important - once you make your changes, you need to clear the cache within Drupal so it recognizes the changes. 非常重要 - 一旦进行了更改,您需要清除Drupal中的缓存,以便识别更改。 To do this go to "admin/config/development/performance". 要执行此操作,请转到“admin / config / development / performance”。

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

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