I'm trying to remove the login form from the front page, but i see both frontpage and user/login page are using the same template file: page--front.html.twig.

Is there a way to use two different template files for each page?

  • check your blocks, your login form might be a block.
    – No Sssweat
    Dec 26, 2015 at 3:42
  • Or your frontpage is set to /user. In that case, just configure the frontpage to whatever you want it to be.
    – Berdir
    Dec 26, 2015 at 10:20

2 Answers 2


Try going to Admin/Structure/Blocks and set User account menu's region to None.


I had the front page set to null. I had to create an empty basic page and set it as front page to be able to have a front page different than the /user/login page. I don't feel it's the best way to do it, but it works.

  • use panels if you could try panopoly.
    – Josh
    Dec 26, 2015 at 20:04
  • Panels is still in development for drupal 8. i wouldn't like to add a whole module for this... Dec 26, 2015 at 23:21

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.