If you regularly create WordPress sites you might have encountered this problem – you can’t natively create a Home link that points to your site’s root in your main navigation which¬†behaves like the other elements (active state and so on).

There’s actually a quite simple solution for this. Just implement the following snippet into your functions.php¬†and you should be able to add your Home link under “Pages” in the menu manager.

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

add_filter( 'wp_page_menu_args', 'home_page_menu_args' );

You should be good to go. If you liked this, please comment and share this post.