Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

How to Show Home Page Link in WordPress 3.0 Menu

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Show Home Page Link in WordPress 3.0 Menu

When WordPress 3.0 was launched, many people did not know about how to add a home page link in the WordPress 3.0 Menu. The simple solution was to add home-page link as a Custom Link to the menu. Well in this article, we will show you how you can show home page link under the pages widget in WordPress 3.0 menu system. This is something that all theme developers should have in their WordPress 3.0 compatible themes.

First open your theme’s functions.php file and paste the following code:

function home_page_menu_args( $args ) {
$args['show_home'] = true;
return $args;
add_filter( 'wp_page_menu_args', 'home_page_menu_args' );

Once you have pasted this code, It should add “Home” as an option under the “Pages” widget on the Menu management page so the user can simply check it off as an item to add to their custom menu.

How to Show Home Page Link in WordPress 3.0 Menu

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. Wallace says:

    Thank you very much, did the job.

  2. Jaime Jay says:

    Thanks… worked perfect

  3. Sabina says:

    Eh… I just did this and my entire site including admin CRASHED! I can’t even login right now, it just doesn’t load. Any ideas as to why this happened?! I followed your instructions exactly and am really confused (not to mention a little mad…) now :(

  4. Wickster says:

    I’m a newbie here, but I followed your instructions carefully and even though it shows me that the ‘file was updated successfully’ the Home page isn’t under the Pages :(…I’m working with Customizr. Any ideas what else to do/check? Thanks a million!

  5. Douglas Moore says:

    Fantastic! You saved me a lot of time. Thanks.

  6. Dhruv says:

    I got it thank u

  7. Dhruv says:

    I am getting home under view all….under menu section…still unable to get the button on my website along with about us

  8. Dhruv says:

    I have done this, but still not able to get home buton along with contact us…plz help http://www.lifeofnichiren,com

  9. Koala Developer says:

    Note that if you don’t have any pages defined in your site the “Pages” widget will be empty and you won’t see the new “Home” option

  10. Adox says:

    What about using an image instead of Home label?

  11. jerome kay says:

    dude you are the real deal.
    my head was spinning but you just saved me
    you are superman.

  12. Tomy Alma Arif says:

    Thank you, very usefull :)

  13. Milan says:

    How can i say thanks ?
    It saved my time and also added homepage to menubar with home icon !
    Thanks a lot wpbeginner !

  14. jlink says:

    Thanks a lot !

    However, I have a question, I would like to change “Home” in “HOME” ? What should I do ?

    PS: I’m french, and instead of “home”, it appears “Accueil”, it’s a good thing for me, but why ?

  15. Imran says:

    Thanks a million times buddy. It helped me lot.

  16. Ben Power says:

    Just as I was about to throw my laptop out the window because of the annoyance caused by nearly everything on wordpress I find an easy to follow tip that actually works. Thanks.

  17. MJ says:

    This worked perfectly for Elbee Elgee theme. Thanks! I can’t believe it’s not a default on most of these themes. Clicking on the header or banner used to default back to home as well, but that doesn’t seem to be the norm as far as I can tell.

  18. zenny says:

    Thanks man great piece of work really helpful

  19. raedina says:

    Thank you for posting! Everything else I read was way to complicated at my level.

  20. Aleksandar Dunchev says:

    Thanks a lot! Work great form me!

  21. Fredde-Fisk says:

    Is wordpress realy this retarded? Do I have to add some hack in the core files to get a menu link to the main page? What will happen when I update wordpress to a newer version? It will certainly overwrite functions.php, and my menu item is gone.

    Since WP does not seem to think that you should be able to have a menu item to your main page if it happens to be your “recent posts page”, I started to look for a plugin that solved this in a more permanent way than hacking some php files. But I could not find any. Is there really no good way to solve such a trivial thing?

    • Editorial Staff says:

      You are NOT hacking the core. You are adding this code to your theme’s functions.php file.

  22. Neiljun Odiaz says:

    You save my page :))


  23. Prashant Ghai says:

    Thanks a lot. This was exactly what I was looking for.

  24. Bogdan says:

    Useful and working ..


  25. Daniel says:

    Thanks a lot, this was exactly what I need :)

  26. Nicole Bencomo says:

    Can I say “THANK YOU SO MUCH”!!! This was exactly what I was looking for. Fixed my website’s main nav perfectly.

    I love WPBeginner!

  27. Meng says:

    Thank you for helping!!!! It’s really awesome.

    However, if I want to set the URL of default home as
    How can I do that?

    Any response will be greatly appreciate.

  28. Joseph says:

    Thank you so much for this handy tip! It worked a charm first time!

  29. Jeannie says:


    Thank you so much – I just spent about 4 hours trying to figure out a simple solution to this. There are many attempts out there but none actually seem to work (at least not on my Barebones installation).

    This is so simple and perfect :D Thanks again!

  30. Alec says:

    I love you man. Thank you so much

  31. SureshK.Chaudhary says:

    which is the best wordpress version???

  32. fatemusiclive says:

    ok ive found it so ignore the comment below, but it doesnt seem to work :S help! lol

  33. fatemusiclive says:

    i dont seem to have a function.php file under themes editor (unless its somewhere else and ive got it wrong and u can direct me lol) can i just add it into the style sheet?

  34. staytrue106 says:

    Thank you so much for posting this. I added the homepage before on another wordpress site I had created, but couldn’t remember how I did it (it was also an earlier version of wordpress too). Your post worked perfectly! thank you :-)

  35. sarahkovac says:

    SOOO glad I found this! I had no idea what I was doing and you made it so simple. THANK YOU!

  36. thiago.trr.kta says:

    just FANTASTIC man! you saved me lots of time! thank you very much!

  37. josh says:

    Thank you – this worked great.

    However … now I want to *remove* it as an option (ie back to no ‘Home’ option) but it won’t go away. I tried the following …
    1) removed the code from functions.php
    2) changed $args[‘show_home’] = true; to $args[‘show_home’] = false;
    3) hard-refreshed the browser on the admin Menus page
    4) logged out/in of wp-admin
    5) copied the original functions.php back from twentyten
    … but it’s still listed under “View All”

    Any suggestions?

  38. Saqib says:

    Good trick. Or one can also insert a custom link by typing and then there you go :) But clients who don’t understand all this, will find this trick helpful.

  39. Diana says:

    Does the home page link work in Wp 3.1.1?

  40. Mark Quinn says:

    Thanks. Work great!

    Somebody mentioned about if sites URL changes. I use a solitary / when linking to my home page. Don’t know if this good practice but it works.

  41. Erin says:

    This is great – thank you.

    What happens though if the site is in development and the URL of the site changes? Will the “Home” link be automatically updated?

    Is there a way to embed a shortcode into the menu item so that the home URL will always be current?

    • Editorial Staff says:

      The home url value is coming from your Settings that you have set. If you change that URL, then yes it will change. You can set a custom class for home by clicking edit on the home link in the menu.

  42. Sheila says:

    It looked simple to do, but no matter where I put that code in the theme’s function.php file, it doesn’t work.

    Any clues as to why that might be?

    • Editorial Staff says:

      Are you clicking on the View All tab? This code is working on a lot of our client’s sites.

      • Phila says:

        You still haven’t answered Sheila’s question – where in the Functions.php file do we place this code?

        Sheila says:
        November 11, 2010 at 11:44 am
        It looked simple to do, but no matter where I put that code in the theme’s function.php file, it doesn’t work.

        Any clues as to why that might be?

        Editorial Staff says:
        November 12, 2010 at 4:54 pm

        Are you clicking on the View All tab? This code is working on a lot of our client’s sites.

        • Editorial Staff says:

          You place this code within the php tag anywhere in the functions.php file.

  43. Connor Crosby says:

    Awesome, thank you so much! I was looking all over for the solution!

  44. Nathan Williams says:

    Thank you wpbeginner. Details like these make us more comfortable working with WordPress.

  45. Joseph says:

    neat and easy peasey

  46. Kishore Mylavarapu says:

    Nice and simple trick.thank you

  47. Bjorn van der Neut says:

    I love love love the articles on
    Keep them coming…now I only have to switch my own website from .net to wordpress.

    But for that to happen I have to build first my own plugin to submit table tennis scores.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.