2

I want to change login page file (some design additional) but I didn't find the file (I think it's login.phtml file, right?) from anywhere!

I changed login.phtml file in base and my custom theme's persistent and customer directories, but nothing happened. How can I find which login.phtml file is correct?

2
  • Never change codes in base directory, create a fallback theme and copy codes from base directory to that fallback theme and modify it. Jul 9, 2014 at 9:17
  • Maybe you use an extension which overwrites the default login.phtml?
    – jonazu
    Jul 9, 2014 at 9:20

3 Answers 3

7

If you're unable to locate a phtml file it's best to turn on template hints.

  1. Disable cache
  2. In the backend go to System > Configuration > Developer and fill out your IP
  3. Change the scope to website level with the top left dropdown
  4. Turn on Template Path Hints under Debug

In the frontend refresh the page and the path to the login template should be visible.

0
4

There's actually two places to look for login file. Older versions stored it in app/design/frontend/{package}/{theme}/template/customer/form/login.phtml and newer ones use persistent catalog app/design/frontend/{package}/{theme}/persistent/customer/form/login.phtml

Also, do yourself a favor and learn how to use template hints as @Sander suggested. There's no hidden catch anywhere -- it really makes your life much, MUCH easier.

2

Enable template hint for your store view,

  1. Go to System >Configuration> Advanced >Developer
  2. Switch to Store view from right side Current Configuration Scope box.
  3. In Debug > Template Path Hints set as Yes.

Your Answer

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

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