---
title: "How to Add Sign Out Tab in Customer Account in Magento 2?"
url: "https://magecomp.com/blog/add-sign-out-tab-in-customer-account-magento-2/"
date: "2023-07-17T13:05:23+00:00"
modified: "2025-02-13T06:06:49+00:00"
author:
  name: "Dhiren Vasoya"
  url: "https://magecomp.com/"
categories:
  - "How To"
  - "Magento 2"
word_count: 368
reading_time: "2 min read"
summary: "Hello Magento Friends,"
description: "Adding a "Sign Out" tab to customer accounts in Magento 2 improves the overall user experience and ensures customer satisfaction. Check out the process."
keywords: "How To, Magento 2"
language: "en"
schema_type: "Article"
related_posts:
  - title: "How to Fix Cron Job Error While Magento 2 Upgrade"
    url: "https://magecomp.com/blog/fix-cron-job-error-while-magento-2-upgrade/"
  - title: "Magento 2: Check if the Current Area is Frontend or Backend"
    url: "https://magecomp.com/blog/magento-2-check-current-area-is-frontend-or-backend/"
  - title: "Magento 2: How to Delete Categories using Root Script by Category IDs"
    url: "https://magecomp.com/blog/magento-2-delete-categories-using-root-script-by-category-ids/"
---

# How to Add Sign Out Tab in Customer Account in Magento 2?

_Published: July 17, 2023_  
_Author: Dhiren Vasoya_  

![How to Add Sign Out Tab in Customer Account in Magento 2](https://magecomp.com/blog/wp-content/uploads/2023/07/How-to-Add-Sign-Out-Tab-in-Customer-Account-in-Magento-2-1024x512.webp)

**Hello Magento Friends,**

In this blog, we will explain How to Add Sign Out Tab in Customer Account in Magento 2.
[![hyva theme development](https://magecomp.com/blog/wp-content/uploads/2025/02/hyva-theme-development-CTA-4.webp)](https://magecomp.com/services/hyva-theme-development/)

The “Sign Out” tab is a useful feature to include in the customer account section as it allows logged-in customers to easily log out from their accounts. Without a clear and accessible sign-out option, customers might have difficulties finding the logout functionality, leading to a potentially frustrating user experience.
By adding the “Log Out” tab, you improve the usability of your Magento 2 store, making it more user-friendly and intuitive for customers. Providing a smooth and hassle-free experience for your customers can contribute to higher customer satisfaction and encourage repeat business on your Magento 2 eCommerce business.
Let’s see How to Add Sign Out Tab in Customer Account in Magento 2.
## Steps to Add Sign Out Tab in Customer Account in Magento 2:
**Step 1:** Create a **customer_account.xml** file inside the theme folder.
**\app\design\frontend\Vendor\Theme\Magento_Customer\layout**

Then add the code as given below
```
<?xml version="1.0"?>
<page layout="2columns-left" xmlns xsi="http://wwww3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/ete/page_configuration.xsd">
    <body>
        <referenceBlock name="customer_account_navigation">
            <block class="MagentoFrameworkViewElementHtmlLinkCurrent" name="customer-account-navagation-signout-link">
                <arguments>
                    <argument name="path" xsi:type="string">customer/account/logout</argument>
                    <argument name="label" xsi:type="string" translate="true">Sign Out</argument>
                </arguments>
            </block>
        </referenceBlock>
    </body>
</page>
```

[![Magento version upgrade](https://magecomp.com/blog/wp-content/uploads/2025/02/Magento-2-Version-Upgrade-CTA-2.webp)](https://magecomp.com/services/magento-upgrade-services/)

**Output:**

Visit your Magento 2 store’s front end, login to a customer account, and navigate to the customer account section. You should see the “Sign Out” tab in the account navigation links. Clicking on it will log the customer out of their account.
![Sign Out tab in customer account](https://magecomp.com/blog/wp-content/uploads/2023/07/Sign-Out-tab-in-customer-account.png)

## Conclusion:
Adding a simple yet effective “Sign Out” tab to the customer account section in Magento 2 will elevate your online store’s user experience. To further enhance the customer experience, [**Add Custom Tab in Customer Account in Magento 2**](https://magecomp.com/blog/add-custom-tab-in-customer-account-in-magento-2/).
[![Magento 2 Speed & Performance Optimization Services](https://magecomp.com/blog/wp-content/uploads/2025/02/Magento-2-Speed-Performance-Optimization-Services-CTA-4.webp)](https://magecomp.com/magento-performance-optimization.html)

Share the tutorial with Magento developers and store owners to help them enhance the user experience. Stay in touch with us for more Magento 2 solutions.
**Happy Coding!**

</body>


---

_View the original post at: [https://magecomp.com/blog/add-sign-out-tab-in-customer-account-magento-2/](https://magecomp.com/blog/add-sign-out-tab-in-customer-account-magento-2/)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-10-26 09:27:50 UTC_  
