[resolved] Twenty Twelve Hardcode secondary navigation? (5 posts)

  1. pablo0151
    Posted 3 years ago #

    Hi there

    I've been looking for a way to add a secondary navigation to my site:


    I'd like it to be above the header text, similar to this:


    I can't seem to find a way to do it, and so was wondering if anyone had any tips for hardcoding three
    in its place?

    Cheers in advance.


  2. Hi.

    To create a new custom menu in your theme you should use WordPress' inbuilt register_nav_menus function in functions.php file.

    Here is a good online tutorial which gives you some step-by-step instructions on how to do this using your twenty twelve child theme: http://zeaks.org/2012/add-second-menu-to-twenty-twelve-theme

    Hope that helps!

  3. pablo0151
    Posted 3 years ago #

    Hi siobhyb

    Thanks for your reply and suggestion.

    I did stumble across this tutorial, and was intrigued, but I got put off by the fact that it displays below the header area.

    Do you happen to know if it can be adapted for what I was looking for?

    Cheers again.


  4. Yes, it can definitely be adapted to suit your needs.

    Using the tutorial:

    - Replace the words "lower-navigation" with "upper-navigation."
    - Add the menu to the header.php file by copying the code directly after <header> as opposed to directly before </header>.
    - There may also be a few CSS changes needed.

    It gives you a good starting point.

  5. pablo0151
    Posted 3 years ago #

    Cheers, siobhyb

    Going to try that today.



Topic Closed

This topic has been closed to new replies.

About this Topic