cancel
Showing results for 
Search instead for 
Did you mean: 

Registration Page

Registration Page

Hello sorry if posted in wrong place

 

is there any way to edit the login page and place an extra button? 

 

i have disabled the registiration but wanting a button to say apply for an account which would take you to a application form which is created on a page here

 

any help will be appreciated 

 

Dan

2 REPLIES 2

Re: Registration Page

Hello @daniel_keay1,

 

You have to  add below code inside layout file

<referenceBlock name="customer_form_login">
    <action method="setTemplate">
     <argument name="template" xsi:type="string">Namespace_ModuleName::login.phtml</argument>
   </action>
</referenceBlock>

You must add to your login.phtml file inside below location app/code/Namespace/ModuleName/view/frontend/templates/login.phtml

 

If found my answer useful. Please Click Kudos and Accept it as solution.

Magento Developer
Deepak S Nair

Re: Registration Page

Hello @daniel_keay1,

 

Login page content retrieves from this file vendor/magento/module-customer/view/frontend/templates/form/login.phtml You can add button application form here.

 

To override template file, Please follow below https://magento.stackexchange.com/questions/116389/how-to-override-phtml-files-in-magento-2

 

--

If my answer is useful, please Accept as Solution & give Kudos