3

I used following code for remove top links Create Account link successfully removed but Sign in link still show so can u please check and let me know what is the correction.

<referenceBlock name="top.links">
        <referenceBlock name="register-link" remove="true" />           <!--for Create Account Link-->
        <referenceBlock name="authorization-link" remove="true" />      <!--for Sign In Link  -->
    </referenceBlock>
5

Use below code for remove sign in link

 <referenceBlock name="authorization-link-login" remove="true" />
  • Bingo... Its Working for me – Pratik Patel Aug 28 '18 at 6:22
  • can you accept answer @PratikPatel ? – Ansar Husain Aug 28 '18 at 6:23
2

You should remove the 'authorization-link-login' block in default.xml file of your theme.

 <referenceBlock name="authorization-link-login" remove="true"/>

Remember to flush cache after that.

  • it is better if we write in referenceContainer header.container. – Ashish Viradiya Oct 2 at 11:21

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.