This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Different main menu on different pages

  • Creator
    Topic
  • #8404
    tompickle
    Participant

    Hey Jason,

    Is it possible to have a different main menu on two different pages in Alyeska? I have a sub page that I need a different top menu for.

    Thanks,

    Tom

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #8405
    Jason Bobich
    Keymaster

    Hello,

    There’s not really going to be an easy answer on this one, unfortuantely. You’d have to first register a menu, like we talked about on your last question.

    But then, the actual menu function of Alyeska, alyeska_header_menu() found in /includes/theme-functions.php, does not have any kind of filter on the theme_location argument of wp_nav_menu().

    So you’re going to have to setup your own version of alyeska_header_menu() from your Child theme’s functions.php —

    http://dev.themeblvd.com/tutorial/editing-framework-functions/

    In your custom version of the above function, you could possibly use WordPress conditionals, to display different instances of the wp_nav_menu function —

    http://codex.wordpress.org/Function_Reference/wp_nav_menu

    http://codex.wordpress.org/Conditional_Tags

    #8407
    tompickle
    Participant

    Thanks for the reply Jason, I’ll see if I can figure that out 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.