dorinspoaller
Member
Posted 3 years ago #
Hi,
I`ve got a problem. On my blog I have a lot of pages, but no default Home page. And I want one. How can I get it ?
Ive put a link in the header that takes to me home page, but it would be a lot easier if Id had a Home Page link in the Pages list.
Can anybody help me ?
edelingf
Member
Posted 3 years ago #
I've got a similair question. I was wondering how to turn a page into a link to the default start page.
In some themes there is a HOME button, in some themes there's not.
I use the Black Energy 1.0 (by qualitywordpress)theme on my WordPress version 2.6.2.
There is a nice little plugin called page links to at http://txfx.net/code/wordpress/page-links-to/ which allows you to define a page so that it appears in the nav bar, but instead of going to a wordpress "page" it just goes to another url or a wordpress page if you have the url.
In your case, you would create a page titled "Home" and just link it to the url or your home page. Since it's a page, it will appear in the nav menu and in the page widget. It's easy to add a home page button to your nav bar by a simple code addition but it would not appear in the page widget.
edelingf
Member
Posted 3 years ago #
And if I don't want all pages appear in the nav menu?
I think I have to change header.php
<!-- Menu -->
<div id="header-menu">
<ul>
<?php wp_list_pages('title_li=&depth=-1'); ?>
</ul>
</div>
<!-- /Menu -->
But what should I change there to make for instance 4 nav menu buttons and remove the pages?
I think I'll have to remove '<?php wp_list_pages('title_li=&depth=-1'); ?>' and put some links in stead of it?
you can exclude pages by hard coding it into the header.php like
<?php wp_list_pages('title_li=&sort_column=menu_order&exclude=62,75'); ?>
or you can use a plugin like pagemash
AnneTanne
Member
Posted 3 years ago #
Go to Settings / Reading
For 'Front page displays' choose: 'A static page'
Then choose which of the pages you have created will be your frontpage.
dorinspoaller
Member
Posted 3 years ago #
Thank you all !
@viceng
That plug-in is great !