Put a link on the nav bar in Wordpress

Posted by Rafe Kettler on Pro Webmasters See other posts from Pro Webmasters or by Rafe Kettler
Published on 2011-02-02T00:55:13Z Indexed on 2011/02/02 7:32 UTC
Read the original article Hit count: 279

Filed under:
|
|

I have a Wordpress blog. On the same domain, I have some other stuff hosted that isn't part of my WP install.

I want to link to those other places on my domain from the top menu bar (nav bar) on my blog. How can I do that?

The theme is Lightword, relevant header.php code follows:

<body <?php body_class(); ?>>
<div id="wrapper">
<?php lightword_header_image(); ?>
<div id="header">
<?php lightword_rss_feed(); ?>

<div id="top_bar">
<div class="center_menu">
<ul id="front_menu" <?php global $lw_remove_searchbox, $lw_use_wp_menus; $lw_menu_width = ""; if($lw_remove_searchbox == "true") $lw_menu_width = " class=\"expand\" "; echo $lw_menu_width; ?>>
<?php echo lightword_homebtn(__('Home','lightword')); ?>
<?php
if ( function_exists('wp_nav_menu') && $lw_use_wp_menus != "true") {
$lightword_menu = wp_nav_menu( array( 'menu' => 'lightword_top_menu', 'echo' => false, 'menu_id' => 'front_menu', 'container' => '', 'theme_location' => 'lightword_top_menu', 'link_before' => '<span>', 'link_after' => '</span>' ) );
$lightword_menu = preg_replace( array( '/^<ul id="front_menu" class="menu">/', '/\n<\/ul>$/' ), '', $lightword_menu);
echo $lightword_menu;
}else{
echo lightword_wp_list_pages();
}
?>
</ul>
</div>
<?php echo lightword_searchbox(); ?>
</div>

</div>
<div id="content">

© Pro Webmasters or respective owner

Related posts about Wordpress

Related posts about links