i want to remove magento top link My Account if user is not logged in ,i do not want to modify core files, i tried to get solution but could not find any working one .
i tried below method in : "
<customer_logout> <referenceBlock name="top.links"> <referenceBlock name="my-account-link" remove="true" /> </referenceBlock> </customer_logout>
but it gives Error :
Element 'customer_logout': This element is not expected. Expected is one of ( attribute, block, referenceBlock, referenceContainer, container, move, uiComponent ).