Select Primary Menu by page

Community Forums Forums General Discussion Select Primary Menu by page

This topic is: not resolved

This topic contains 2 replies, has 3 voices, and was last updated by  braddalton 1 year, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24341

    staceypruim
    Participant

    I’m using Genesis and a plugin called genesis simple menus to define which secondary menu displays in certain sections of my menbership site.  I need to have another level and so was hoping to also be able to override the default primary menu as well.  Anyone done that before or know how I would go about having it “defined” by page like the secondary navigation is currently?

    #37604

    cehwitham
    Participant
    Post count: 396

    If there isn’t an option in the plugin to define the primary menu too, then you’d have to write conditionals in your functions.php file to switch the menu based on which page you’re on.

    Do you need to use primary and secondary menus? If you only need one menu per page an alternative would be to use your current plugin and then just switch the primary and secondary menus.

    Chris


    Twitter: cehwitham Web: cehwitham.com

    #37633

    braddalton
    Participant
    Post count: 10357

    I’ve written conditionals for this and you can also use a plugin.

    Simply change the conditional tags in this code to the page i.d’s you want to use or install the plugin. http://wordpress.org/extend/plugins/menu-items-visibility-control/

    Code not displaying? Grab it from Github


Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.