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

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.

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.