Add a WordPress log out link to a menu

Last modified: April 2, 2020
You are here:
Estimated reading time: 1 min

In a default WordPress installation, the only place the log out link is displayed in is the WordPress admin bar. If your WordPress site is designed primarily for registered users, it can be helpful to add a log out link to the navigation menu.

Log Out


One of the best places to add a log out link is in your site’s navigation menu. Adding the link here will make it easily accessible on every page of your site.

Firstly, log in to your WordPress dashboard and go to Appearance > Menus.

Select “Menus”


Then, Expand the Custom Links section and add the logout URL in the URL field, making sure to change to your domain name and change the path to your WordPress installation folder, if necessary.Secondly, In Link Text, add the text you want to be displayed in the menu. In our example, the text is Log Out. Click Add to Menu.

Add to Menu


After that, you should now see the Log Out link in the Menu Structure. If you want to change the order of the menu links, drag the links to the correct position. When you’re happy with the menu links, click Save Menus.

Click “Save Menus”


You should now see the Log Out link on your site’s navigation menu.

Log Out Link navigation menu


The default sidebar Meta widget includes log in and log out links. However, if you don’t want to use the Meta widget, you can still display a log out link by adding a text or HTML link to the sidebar.

Log in to your WordPress Dashboard and go to Appearance > Widgets.

Select “Widgets”


In this example, we’re adding a custom HTML link to the sidebar, so we’ll drag the Custom HTML widget from Available Widgets to Blog Sidebar.

Adding a custom HTML link to the sidebar


Enter a Title for the widget. This will be displayed in the sidebar above the link. In our example, the title is User Status. In Content, enter the following HTML code, replacing with your own domain name. Click Save.

Click “Save”


The log out link is now displayed in the site sidebar.

Log Out Link


Was this article helpful?
Dislike 0
Views: 25
Customer Services Contact

Need Help? Send a Ticket to our 24X7 Technical Support Team

Subscribe Newsletter

Subscribe to Casbay Newsletter for online tips, events and latest promotion !

Copyright © 2010 – 2021 Casbay Sdn. Bhd. (1042688-D). All Rights Reserved.

All Trademarks Are The Property of Their Respective Owner.