WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Why "Home" not visible? (9 posts)

  1. insanoff
    Member
    Posted 3 years ago #

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

  2. govpatel
    Member
    Posted 3 years ago #

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

  3. insanoff
    Member
    Posted 3 years ago #

    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

  4. govpatel
    Member
    Posted 3 years ago #

    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.

  5. insanoff
    Member
    Posted 3 years ago #

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

  6. insanoff
    Member
    Posted 3 years ago #

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

  7. govpatel
    Member
    Posted 3 years ago #

    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.

  8. chinmoy
    Member
    Posted 3 years ago #

    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.

  9. insanoff
    Member
    Posted 3 years ago #

    Cool! Very-very thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic