homepagemenu

How to Show Home Link or Button in WordPress Menu

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

When WordPress 3. 0 was launched, a lot of people would not find out about how you can put in a homepage web page link within the WordPress 3. 0 Food list. The straightforward remedy ended up being to provide home-page web page link to be a Tailor made Connection to your menu. Properly in this article, all of us will show you how one can show homepage web page link within the internet pages golf widget within WordPress 3. 0 menu method. It is something all concept programmers must have inside their WordPress 3. 0 appropriate themes or templates.

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

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

After having pasted the code, It should create “Home” just as one solution underneath the “Pages” widget around the Menus operations site so the end user can just examine that away just as one item to add to their particular custom made menus.

Add home link in WordPress

Add home link in WordPress

Isn’t it very easy?

Read More