Re: WordPress Newbie - Simple questions?
Open your theme folder and get your
header.php file out.
go to around line 63 and look for this
Code:
<ul id="nav">
<?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
<li class="<?php echo $highlight; ?>">Home
<?php
wp_list_pages('sort_column=menu_order&depth=0&title_li=&exclude='.get_option('excluded_pages'));
?>[/list]
This is your main navigation code.
Take a main link code such as this
Code:
<li class="<?php echo $highlight; ?>">LINK TEXT
And insert it someplace around the
header.php code so you will end up with this
Code:
<ul id="nav">
<?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
<li class="<?php echo $highlight; ?>">LINK TEXT
<li class="<?php echo $highlight; ?>">Home
<?php
wp_list_pages('sort_column=menu_order&depth=0&title_li=&exclude='.get_option('excluded_pages'));
?>[/list]
Simply replace the text inside the link with the following
SITE LINK = Replace with the URL of where you want the link to go to.
LINK TEXT = What you want the link to say.
Eric is best known in the forum for his in depth tutorials. He started in design 4 years ago and then discovered WordPress and has been coding and hacking themes and plugins ever since. He's quite helpful if you have any questions for him in the forum. Eric also makes his own WordPress themes and plugins and provides ClassiPress consulting on the side. David Cowgill - (Owner of Classipress)