1

how do I remove the "Sign Out" link from the header panel but still keep the "Sign Out" link in the drop down menu (Which contain "My Account" and "My Wish List" links) next to it?

If I put this code in my theme's default.xml <referenceBlock name="header.panel"> <referenceBlock name="authorization-link" remove="true"/> </referenceBlock>, the "Sign Out" link in drop down is removed but the "Sign Out" link in the panel is not, which is the opposite of what I'm trying to achieve.

enter image description here

  • Find any solution for this? – Ramya Feb 12 at 8:32
1

You could go to the file:

vendor/magento/module-customer/view/frontend/templates/account/link/authorization.phtml

Copy it and overwrite it in your own theme and delete the li that contains the sign out link.

1

GO to Your theme directory...

app/design/frontend/Yourtheme/Xyz/Magento_Customer/layout/default.xml

write below line...

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

php bin/magento cache:flush and check your frontend

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.