WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Why "Home" not visible?

[Resolved] Why "Home" not visible?

  • insanoff
    Member

    @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)
  • govpatel
    Member

    @govpatel

    Did you create a home page?
    post your url so that we can see your website.

    insanoff
    Member

    @insanoff

    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”.

    http://img580.imageshack.us/img580/1746/homepagep.jpg

    govpatel
    Member

    @govpatel

    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.

    insanoff
    Member

    @insanoff

    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' ) ); ?>

    insanoff
    Member

    @insanoff

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

    govpatel
    Member

    @govpatel

    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.

    chinmoy29
    Member

    @chinmoy

    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.

    insanoff
    Member

    @insanoff

    Cool! Very-very thanks!

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