• I’d like to have an index page which does not include any blog posts. In the codex it tells me to use [settings –> Reading] then set it to another page. It works but I have an issue.

    Before I had the following pages:

    home, bio, columns

    So of course the page called Home (index.php) contained the blog as a default.

    So I made a page I called Main and another called Blog, and proceeded to set the Blog page to be the page with my posts, and Main to be the Front Page as instructed in the codex.

    The problem I have is that now I have both Home and Main in my top menu bar and I don’t want both (redundancy).

    Can anyone tell me how to fix this? Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • site url? or theme name?

    Thread Starter lenboy

    (@lenboy)

    Go here and you’ll see what I mean:

    http://thinkbbk.com/alext/

    In the menu bar it shows that I have both home and main, obviously I only need one.

    Thanks

    If you create a home.php file in your active theme folder your blog will generally show this “page” first under default settings.

    You can manually code the home.php file to display whatever you like, a good way to get a running start at home.php is to copy index.php (rename the copy to home.php) then edit the home.php file.

    Hope that helps some …

    lemboy: open you your theme’s header.php, look for the following code:

    <!-- Main navigation -->
    <div id="navwrapper">
    <div id="horiz-menu" class="nav">
    <ul>
    <li <?php if(is_home()){echo 'class="current_page_item"';}?>><a href="<?php bloginfo('siteurl'); ?>/" title="Home">Home</a></li>
    <?php wp_list_pages('title_li=&depth=1&'.$hidden_pages)?>
    </ul>
    </div>

    and delete only the code below from above and you’re good to go
    <li <?php if(is_home()){echo 'class="current_page_item"';}?>><a href="<?php bloginfo('siteurl'); ?>/" title="Home">Home</a></li>

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘using a page as a front page’ is closed to new replies.