Best way to set up topical navigation in Wordpress?

4 replies
I have a wordpress site using the Genesis framework. What would be the best way to set up topical navigation such as what is shown here:

http://www.cesarsway.com/channel/dog-behavior

When someone clicks a tab it shows topical navigation below the main nav items. Is there a plugin that would achieve this easily or would it need to be custom? If custom how hard would it be? I have uber menu but you have to scroll over each tab to get it to show the subtopics. I would like them to all appear below it...

Thanks =)
#navigation #set #topical #wordpress
  • Profile picture of the author dconjar
    I don't know if there's a plugin that does this, but I'd solve this problem by:
    1. Registering the nav menus with WordPress
    2. Creating a custom function to check for the "context" of the current page (which would probably mean checking what category the post is in)
    3. Creating a custom function to display the menu based on the context
    4. Adding that last custom function to your theme to display the menu

    I attached some PHP code that might do steps 1-3. It's untested, so be careful - it could definitely break things.

    I'm unfamiliar with Genesis, so I'm not sure where you'd have to put the code. But if you get the functions added, you can load the menu to your theme with this code:

    PHP Code:
    <?php display_sublevel_menu(); ?>
    {{ DiscussionBoard.errors[8273295].message }}
    • Profile picture of the author Letsurf
      Originally Posted by dconjar View Post

      I don't know if there's a plugin that does this, but I'd solve this problem by:
      1. Registering the nav menus with WordPress
      2. Creating a custom function to check for the "context" of the current page (which would probably mean checking what category the post is in)
      3. Creating a custom function to display the menu based on the context
      4. Adding that last custom function to your theme to display the menu

      I attached some PHP code that might do steps 1-3. It's untested, so be careful - it could definitely break things.

      I'm unfamiliar with Genesis, so I'm not sure where you'd have to put the code. But if you get the functions added, you can load the menu to your theme with this code:

      PHP Code:
      <?php display_sublevel_menu(); ?>
      Great info thanks =) I'm def not a programmer so not something I want to tackle myself. What would you charge for something like this? Feel free to PM me if you want.
      {{ DiscussionBoard.errors[8274848].message }}
      • Profile picture of the author rhinocl
        You might be able to add the topical menus in a widget and control which one displays with the widget logic plugin. Not terribly easy, but do-able. I would use a different theme if I wanted to do this though.
        {{ DiscussionBoard.errors[8275580].message }}
  • Profile picture of the author SteveJohnson
    This is actually pretty simple to do...you'd just need a little code and some styling.

    Genesis makes it fairly easy to 'hook' into the correct section of the template, and you just perform some tests to determine what page the visitor is on. You could use a lot of the code that dconjar set up in his file, changing it up slightly to use Genesis's hooks.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[8277159].message }}

Trending Topics