Support » Themes and Templates » How I succeeded with horizontal page navigation

  • I’m using a theme (Thematic) which allows for a horizontal page navigation menu, but you have to do a hideous amount of code-tweaking in order to include your blog front page in that menu. Or in order to include an external page. I was tearing my hair out because I just don’t really understand php and javascript and superfish. Seriously. The code I had to mess around with in my theme involved something called “superfish”. I spent two and a half days unsuccessfully trying to set up that stupid page navigation menu.

    Then I found the PERFECT plug-in to work around the problem. The “Page Links To” plugin by Mark Jaquith is a dead simple method: It lets you create regular (blank) WP blog pages, and then link them to wherever you want. Then WP thinks they’re all just regular blog pages, and adds them to your nav menu with whatever title you give them.

    You can still style the menu with CSS.

    Check out the results on my blog:

Viewing 1 replies (of 1 total)
  • There’s ways to do this with Thematic that are actually pretty easy. You can even just replace the dynamic menu with a hardcoded menu if you want:

    //  Add a hardcoded menu
    //  This would go in your functions.php file for your child theme
    function childtheme_menu() { ?>
         <div class="menu">
              <ul class="sf-menu">
                    <li><a href="">My Link One</li>
                    <li><a href="">My Link Two</li>
    <?php }

    I wrote a blog post about thematic menu hooks here.

    But if the plug-in works, awesome.

Viewing 1 replies (of 1 total)
  • The topic ‘How I succeeded with horizontal page navigation’ is closed to new replies.