I want to extend the customer account creation template (register.phtml) of the Luma theme. I copied the register.phtml to my custom theme directory:


and modified it. After flushing the cache and refreshing the browser I can't see my changes.

What is wrong?

Is it always necessary to copy the template in a custom theme folder or is it also possible to copy it to the view folder of my custom module?



  • app\design\frontend\vendor\theme_name\Magento_Customer\templates Commented Dec 23, 2015 at 10:17
  • Try deleting the cache manually from var/cache and delete all folders, it might help. Commented Dec 23, 2015 at 10:32

3 Answers 3


Solution: I tried the hints, but they didn't solve the problem. After searching for a while I figured out the following path which is working:



your current path of template file is worng


the correct path will be

  • I changed the path, but there is no effect!
    – ClassMP
    Commented Dec 23, 2015 at 10:07
  • disabled the cache then check Commented Dec 23, 2015 at 10:11

Copy the layout file to your theme.

Copy the customer account creation layout XML file from below location


to your theme that you’re editing


If the template folder does not exists then create a template folder in the given path


replace the below line of code of layout file (which one is copy from core magneto)

<block class="Magento\Customer\Block\Form\Register" name="customer_form_register" template="form/register.phtml">


<block class="Magento\Customer\Block\Form\Register" name="customer_form_register" template="Magento_Customer::/form/register.phtml">

Copy the html code from below location and paste into register.phtml (which one is created in theme directory)


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.