Style Drupal 7 log-in page
10,875
You can override any page template by naming your templates in the following convention:
For page 'user/login':
page--user--login.tpl.php
For page '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.
Comments
-
Michiel almost 2 years
How do I style the login-page of Drupal 7? I used different methods like
page-user-login.tpl
oruser-login.tpl
ofpage-login.tpl
but with no results.Is there an easy way to theme your login page in Drupal 7 in his own
.tpl
-file? -
Michiel over 12 yearsGot it, thanks!! A
page--user.tpl.php
is required though. And it's only working withpage--user--login.tpl.php
! But thanks! -
Clive over 12 years@Michiel: Sorry, I left out a dash, I've updated that in the answer. Check out this link as well it's the one I was originally looking for and explains all this very well
-
Michiel over 12 yearsThanks for the additional link
-
Saeed Afzal over 5 years@Clive Thank you so much for the gerat help.