How to show the “home” link on wp_nav_menu default fallback function

You just have to paste the following code into your theme functions.php file:

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

Thanks to Reza for this nice piece of code!

Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!

How to show the “home” link on wp_nav_menu default fallback function

Leave a Reply

Your email address will not be published. Required fields are marked *