Support » Fixing WordPress » Why "Home" not visible?

  • Resolved insanoff


    I’m using “wp_nav_menu” for navigation. But “Home” is not visible in my themplate…

    <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>

Viewing 8 replies - 1 through 8 (of 8 total)
  • Did you create a home page?
    post your url so that we can see your website.

    My website is in localhost. I’m creating a new template. Home page displays latest posts. I want create “home” link with “current_page_item”.

    We normaly create a blank page with what ever name you want for your post page and create a home page with your content and than go to settings reading and select static page and select Home as front page and blank page you created as post page and save.

    and add the pages in your custom menu if your using it.

    I want to make a menu like standart WordPress theme Twenty Ten. My menu code is the same code as standart theme.
    <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>

    This will be a free opensource theme. So must be understandable.

    That is right if you have that code in your theme than the user can create a custom theme like we do in twenty ten and make static pages if they want or use it as blog if they want.

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

    Write this is in your functions.php file and check once.

    Cool! Very-very thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Why "Home" not visible?’ is closed to new replies.