WordPress Navigation Bar
Filed in: WordPress — May 7th, 2005Many have asking me about how to add the top navigation bar to the WordPress like my blog. I was doing it manually by adding CSS and HTML code. To make it easier for general bloggers, I made the following WordPress Navigation Bar hack.

What it does?
Add a navigation bar under template header image. The navigation bar has a tab that link to blog URL and auto add WordPress ‘pages’ link tabs.
How to apply?
There are two ways to apply:
- Copy and paste the WordPress Navigation Bar code to the end of /wp-content/themes/default/header.php.
- OR, Easier method. Download the modified header.php, extract it to /wp-content/themes/default/ (replace existing header.php file).
Credits:
- CSS code ripped from BinaryBonsai
- Idea to use wp_list_pages() enlighten by Pool theme
FAQ
- How do adjust the position of the navigation bar?
Simply modify the values of “top” and “left” under “#supernav”. - How to list Pages by menu order?
Find:
<?php wp_list_pages('title_li='); ?>
then, replace it with:
<?php wp_list_pages('sort_column=menu_order&title_li='); ?>
More details are available at WordPress Codex/wp list pages. - How do I add custom URL into the navigation bar?
Sorry, you can’t. The hack code only creates tabs based on your WordPress Pages.
Like this post? Please share:
Follow @liewcf on Twitter; Join Facebook page; Subscribe to free newsletter for updates like this article..





Pingback: Flyweb »» blog site » Blog Archive » Kubrick and WordPress
Pingback: The Philpot Spot » Blog Archive » Genesis, the snide version
Pingback: 随锅逐流 » Extended Live Archive 0.10 版本教學
Pingback: 滚瓜壮格 » Ultimate Tag Warrior 教學
Pingback: 5个Wordpress导航菜单教程 | 帕兰映像