开发者

Overriding/customizing Drupal modules

I would like to override custom user template in my Drupal 7 installation. The question is - should I edit the template file 开发者_JAVA技巧in the main module or copy the module to my theme's folder and edit it there? In case of the second option, how can I do it?


You should definitely create a subtheme to customize the look and feel. Otherwise, every time you upgrade core you will have to reapply your changes. You can subtheme the default Drupal 7 theme (Bartik) by following these steps.

Once you have done that, copy the user-profile.tpl.php file into your subtheme directory (/sites/all/themes/mytheme).

Finally, make the changes you want to make to user-profile.tpl.php

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜