简体   繁体   English

风格Drupal 7登录页面

[英]Style Drupal 7 log-in page

How do I style the login-page of Drupal 7? 如何设置Drupal 7的登录页面的样式? I used different methods like page-user-login.tpl or user-login.tpl of page-login.tpl but with no results. 我使用了不同的方法,如page-user-login.tplpage-login.tpl user-login.tpl page-login.tpl但没有结果。

Is there an easy way to theme your login page in Drupal 7 in his own .tpl -file? 有没有一种简单的方法可以在他自己的.tpl -file中使用Drupal 7中的登录页面进行主题化?

You can override any page template by naming your templates in the following convention: 您可以通过在以下约定中命名模板来覆盖任何页面模板:

For page 'user/login': 对于页面'user / login':

page--user--login.tpl.php

For page 'foo/bar/' 对于页面'foo / bar /'

page--foo--bar.tpl.php

See Core templates and About overriding themable output for more information. 有关详细信息,请参阅核心模板关于覆盖可输出的输出

Remember to clear Drupal's caches once you add a new template file so the theme registry has a chance to pick the new file up. 添加新模板文件后,请记住清除Drupal的缓存,以便主题注册表有机会选择新文件。

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

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