In this post I am going to explain how to override login page template (login.phtml) in magento 2. Here, I am using my custom module – Ht_Mymodule First create xml file customer_account_login.xml and add below code snippet. File Path: app/code/Ht/Mymodule/view/frontend/layout/customer_account_login.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceBlock name=”customer_form_login”> <action method=”setTemplate”> <argument name=”template” xsi:type=”string”>Ht_Mymodule::form/login.phtml</argument> </action> </referenceBlock>…


Recent Comments