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
精彩评论