- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Which file contains the content of /customer/account/login
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.
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Which file contains the content of /customer/account/login
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.
Magento 2 Blogs/Tutorial
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Which file contains the content of /customer/account/login
Thanks Rakesh.
You saved lots of time.Kudos.
--Parvinder