I'm working on Drupal 7, and trying to create one customized login page. I don't want to display the right and left regions in this page; I want a login page with only header, footer and content, where the content would be the "Username" and "Password" fields.

How can I do it?

  • Use different page templates. Are you using the default Drupal theme, or Omega or something else? If you use Omega there is the Delta module. Also Context module might help you.
    – ram4nd
    Commented Jan 20, 2012 at 7:01

2 Answers 2


Go to the Blocks admin page, admin/structure/block.

Find the regions you don't want to show. E.G., 'Sidebar A,' 'Sidebar B.'

'Configure' the blocks which appear in those regions. They will all have a 'Pages' tab at the bottom, and this is where you can configure which pages contain or exclude those blocks. You'd check 'All pages except those listed' and then put the path to your custom page.



A good theme will have block-regions collapse (disappear) when there are no blocks in those regions.

So, every block which appears in those regions should be configured to not appear on the login page. This is a basic task with regard to configuring blocks, so, if you're not already familiar with how to define paths for block-display, you will easily find a handbook on drupal.org or many other guides or tutorials on the subject.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.