I want to remove the register-link from the header links, so I have wrote in the default.xml of the Module_Customer of my theme:

<referenceBlock element="register-link" remove="true"/>

The problem is the block is not removed and I don't know why.


1 Answer 1


You should use name instead of element in your xml

<referenceBlock name="register-link" remove="true"/>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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