Add Customer Sign Out link in My Account navigation

Do you want to give the possibility to your customer to sign out directly with a link from the My Account navigation menu? Is as simple as that. Let's go and see together how you can do it!

Create a customer_account.xml file under your theme directory /app/design/frontend/<Vendor>/<theme>/Magento_Customer/layout/ and add the following code.

Clean Magento Cache, Sign In and navigate to the My Account. At the bottom of the Navigation menu you have to see the Sign Out link as in the screen bellow.

Feel free to share this post and ask your questions in the comments below.
Till next time!

DigitalOcean Referral Badge