cancel
Showing results for 
Search instead for 
Did you mean: 

Which file contains the content of /customer/account/login

Which file contains the content of /customer/account/login

Hi,

 

I want to change the content of this page: /customer/account/login

 

Which file in magento2 is responsible for the this page?

 

thank you

2 REPLIES

Re: Which file contains the content of /customer/account/login

@tabstop

 

You can enable template file, so you can know which file called

Store > Configuration > Advanced > Developer > Debug > Enabled Template Path Hints for Storefront > Yes

 

Hope it will work for you!!

 

If it work for you then mark as solution.

Re: Which file contains the content of /customer/account/login

@tabstop,

For customer/account/login action contents below file from Magento Customer module,

 This action contains XML file inside below path,

 

vendor/magento/module-customer/view/frontend/layout/customer_account_login.xml

Path of template file is,

vendor/magento/module-customer/view/frontend/templates/form/login.phtml

You can find details of title like , New Customers, Create an account

from file,

vendor/magento/module-customer/view/frontend/templates/newcustomer.phtml

Above template file is responsible for content of login.phtml file

 

Above template file is calling block function from below Block class,

 

vendor/magento/module-customer/Block/Form/Login.php file

If issue resolved, click Kudo and Accept as solutions.

If Issue Solved, Click Kudos/Accept As solutions.