Add a Home in WordPress Pages Widget

WordPress Widgets are handly little pieces of code that usually come from plugins. They are usually displayed on sidebars. One of my favorite widget is the Pages Widget. One thing that is obviously lacking from the Pages Widget is a ‘Home’ link.

A number of WordPress themes use ‘Pages’ for navigation. The navigation links are usually located on top or just below the header. Theme designers usually add a custom ‘Home’ link in addition to listing the pages, ie, wp_list_pages().

If you use the Pages Widget, you can add a ‘Home’ link without adding a single line of code. The inspiration came from an earlier article I wrote about ‘Creating a WordPress Page With An External Link.’

Add A Home

Go to your Dashboard > Pages > Add New

Enter in the Title: 

<a href=”/”>Home<a/>

Leave the content blank. Publish.

You now have a WordPress Page pointing back to your main index page. Verify if the ‘Home’ link is reflected on the Sidebar.

That’s it.