Oct 26, 2020 5 min read
To successfully replace the Magento_Customer::form/login.phml template with a custom template
Create the following directory structure app/design/frontend/Vendor/theme/Magento_Customer/templates/form/
Add the template file app/design/frontend/Vendor/theme/Magento_Customer/templates/form/login.phtml
Add desired custom code within the login.phtml file.
Verify the custom theme is already in place (or enable it if you haven't already) by going to: Admin panel->Content->Design Configuration->Your Store or Store View. And sure your custom theme shows under Applied Theme
If you're not in developer mode, or if you are in developer mode and have manually deployed static content (php bin/magento setup:static-content:deploy) then you'll want to clear your cache and pub/static/ (except the .htaccess) directories. If you are in developer mode and haven't manually deployed static assets skip this step.
Refresh your http://YOUR_DOMAIN.COM/customer/account/login/ page, or go visit it, and view the desired changes.