Remove Sign in and Create account links from header Magento 2
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>
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