mohanarun
Member
Posted 3 years ago #
Hi to understand my problem please have a look here:
http://www.perceptico.com/
The About Us, Contact Us, etc have been set up as PAGES in the WP Dashboard. When I post something new using the Posts > New option, it always ends up on the Home tab or page. I want the home page to be static, and the blog entries to appear in the Blog tab. Any help on how I can do this with WP 2.7?
Write a Page called "home", and you already have a Page called "blog".
Go to Options -> Reading and set your home page to be a static page, select "home", and underneath define "blog" to be the article page.
mohanarun
Member
Posted 3 years ago #
Hi Thanks for the info. By the way it is Settings -> Reading. I figured that out.
I still have a problem. May be you can help. The "Home" page seems to be generated automatically by default, and I have another custom "Home" page just made out (static). I cannot seem to find a way to delete the default "Home" page. It does not appear in the list of pages that can be deleted here: /wp-admin/edit-pages.php.
Thanks for any help.
mohanarun
Member
Posted 3 years ago #
Hi please see here:
http://www.perceptico.com/
If I click on the first "Home" tab (default auto-generated) then it actually takes me to the Home1 tab. I need a way to delete that first Home tab. Can u pls help?
I guess that means the "home" button is actually hard-coded in the theme file.
Look at your header.php file. You'll find a "wp_list_pages()" somewhere. Right before that should be a
<li><a href="http://www.perceptico.com" title="Click for Home"><span><span>Home</span></span></a></li>
Remove that.
Rename your home1 to home ;)
mohanarun
Member
Posted 3 years ago #
Excellent! Thanks for the awesome help!
I searched for header.php in the main directories high and low and at last I figured out you mean it is in the theme directory. I found that and it looked something like this
<?php //remove this section if you're using a static page as a homepage; currently there's no way to find out with the theme function...
if(is_home() && !is_paged()){ ?>
<li class="current_page_item">" title="You are Home"><span><span>Home</span></span>
<?php } else { ?>
" title="Click for Home"><span><span>Home</span></span>
<?php } // end of home section ?>
So self-explanatory.
So it is because there's no curent way to find out if the page is a static page ? I thought my requirement should be pretty common (static home page; post blog entries to blog page only)
It just depends on the theme designer - most users like to use a "home" button but not create a special Page for it. It works out-of-the-box.