Menu

#1 Option to add a home link in the menu

open
nobody
3
2011-06-30
2011-06-30
No

It would be nice to have the option to have a home button in the menu.
The option should include to label the menu entry to something other than the language default.
The only alternative way of achieving this now, is to build the menu manually.

Discussion

  • Jimmy Merrild Krag

    The Twenty Ten theme has a function that sets this, but it's not available from the interface.
    The default of Twenty Ten 1.2 is to show this (I'm not sure that it's "Home" in english, but I'm guessing for this, since it's what the Danish "Hjem" translates to directly).

    In functions.php you find:
    function twentyten_page_menu_args( $args ) {
    $args['show_home'] = true;
    return $args;
    }

    Change 'true' to 'false', and the entry disappears.

    I'm going on vacation tomorrow, so I can't take this one as of now, but I might take it on when I get home.

     
  • Ivan Milyaev

    Ivan Milyaev - 2011-07-01

    IMO this is absolutely unnecessary feature. Moreover I think this is bad because it duplicates WP core functionality of custom menus and users will have to control two options in two different places to setup the menu.
    Regarding manual building: you have to build the menu only once and after that all new pages can be add to the menu automatically.

     
  • Jimmy Merrild Krag

    Well, I have had issues with building a menu in multiple levels, but I have to check that again. The main need for a home link comes from setting "Show Blog Title And Description" to "No". It would be nice if the whole header was then click-able linking to home.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.