Question

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>
Was it helpful?

Solution

Use below code for remove sign in link

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top