WordPress.org

Ready to get started?Download WordPress

Forums

How I succeeded with horizontal page navigation (2 posts)

  1. quercus
    Member
    Posted 4 years ago #

    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: http://bendingtreearts.com/blog

  2. Devin Price
    Member
    Posted 4 years ago #

    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="http://mysite.com/link-one">My Link One</li>
                    <li><a href="http://externalsite.com/link-two">My Link Two</li>
              </ul>
         </div>
    <?php }
    
    add_action('wp_page_menu','childtheme_menu');

    I wrote a blog post about thematic menu hooks here.

    But if the plug-in works, awesome.

Topic Closed

This topic has been closed to new replies.

About this Topic