Forum Moderators: not2easy
welcome, welcome, about us, etc, etc, etc
1 Page is named: Welcome
and I would like the content of that page to the the "home page" or "index page".
Also, I do not like to use the word "home" for my home page for a navbar title.
In the header file I have:
<!-- header -->
<div id="header">
<div id="logo"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></div>
<div id="menu">
<ul>
<li><a href="<?php echo get_settings('home'); ?>/" title="Home">Welcome</a></li>
<?php wp_list_pages('title_li=&depth=1' ); ?>
</ul>
</div>
</div>
<!--end header -->
If I switch "Welcome" to "Home" than the Nav Bar will read:
Home, Welcome, About Us, Etc., Etc.,
IN the wordpress admin panel under "reading" / settings
I have front page set to Welcome
when it is set this way the URL shows as: domain.com
but, if I choose front page to display a static page and do not choose a static page than when clicking on the url (the second link on navbar) for welcome it becomes: domain.com/welcome
and than if I click on the first "welcome nav bar link - which could be renamed 'home' as per above.. than the domain is:
domain.com but the page is a sorry not found page.
So, in summary I would like a link that says: Welcome rather than home and would like it to not duplicate in the nav bar.
Hopefully, I have done well in explaining my question.
this call: <li><a href="<?php echo get_settings('home'); ?>/" title="Home">Home</a></li>
allows a link to be on the nav bar so that someone can always go back to the home page - for example.
and
I like this blog / website to use the static page feature to display rather than the latest posts.
So, I think it is redundant to have a link that says Home which comes from the call in the header and it leads to the pure domain.com url
than you have to chose which static page displays so I choose welcome and when you read the URL you also have: domain.com only instead of domain.com/welcome
But, the redundant part is seeing the welcome screen and than as a consumer out of curiosity I click the "home" link to see the main page of the website.. nothing happens.. nothing changes..
so, you and I know what's going on but this might confuse the end user.
Is there a workaround so that I dont have to have the "home" page link + the static page link showing in the nav bar. Since they both render the same page.?
Regards
What's the page name (like foo.php) of what you're saying should be the static front page, and which page template is being used for it?
[Disclaimer: I can't be too much help, I'm just getting into WP tags and customization and sit with a book open next to me every step of the way).]
Design > Theme Editor
On the right side, you'll see a column with a list of all the template files, including page.php which is way at the bottom usually. You can actually make custom page or category templates and upload them with FTP, when you figure out what the WP tags are, what they do, and where to put them.
PR4 was until just recently PR5, and will get ported over to a CMS in due time. Meantime, I'm "playing" with customization in a subdirectory of an old PR0 domain (did the 5 minute install), using Kubrick and a book and referring to the codex for detail in depth. Basically, the bare essentials (aside from the functions and back end) for WP are:
index.php
header.php
sidebar.php
footer.php
which are includes except for index.php and of course the css file.
page.php is a template for static pages rather than posts (and archives), and home.php apparently has a special meaning.
<!-- header --><div id="header">
<div id="logo"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></div>
<div id="menu">
<ul>
<li><a href="<?php echo get_settings('home'); ?>/" title="Home">Welcome</a></li>
<?php wp_list_pages('title_li=&depth=1' ); ?>
</ul>
</div>
</div>
<!--end header -->
wp_list_pages would be a WP function that fetches and puts the Pages that are created into the list, but the first one [get_settings]looks like it's hard coded to call a function that puts out a link to the 'home' or main/root page of the site.
[codex.wordpress.org...]