How to Show Home Page Link in WordPress 3.0 Menu

83

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

Social Media Auto Publish Powered By : XYZScripts.com