Navigo

email

Business Capital has a nice horizontal menu with drop-downs. Most of them are just (parent) pages with children and then grandchildren. Fine, good, works fine. But either it was a glitch or just too late at night, but when on a sibling page, the drop-downs for that parent no longer dropped down. Hmm. Tried some template tag tricks to no avail. Did a bit of a plugin search and came across Navigo.

That worked, the drop-downs worked, but the only thing that didn't work was the parent showing up. A bit of lucky tweaking and I manually put in the parent name and a manual absolute URL and it worked! Here's my Navigo code as embedded in the header:

PHP:
  1. <li><?php if(function_exists('navigo')) navigo('child_of=5&sort_column=menu_order&title_li='); ?><a href="http://www.bizcap.com/about/">About Us</a></li>

The original Navigo code just didn't have that parent link:

CODE:
  1. <li><?php if(function_exists('navigo')) navigo('child_of=5&sort_column=menu_order&title_li='); ?></li>

I added the bullet tags so it worked with the rest of the nav bar.

Related posts:

  1. Recent posts in category
  2. WP-PagesNav
  3. Open Web Analytics
  4. Can’t Save/Publish Long Posts in WordPress
  5. TinyMCE – WYSIWYG Editor

About Bradley Charbonneau

I've done the big corporate thing. I've done the creative writer thing. Now I'm happily in the middle. I like to help small businesses who are interested in "working their website before their website works them." I'm also interested in creating beautiful sites with powerful WordPress themes.

, ,

No comments yet.

Leave a Reply

CommentLuv badge