Conditional Sub menus – controlled by slug / category

Community Forums Forums General Discussion Conditional Sub menus – controlled by slug / category

This topic is: not resolved

Tagged: 

This topic contains 11 replies, has 3 voices, and was last updated by  kriskl 1 year, 3 months ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #8350

    kriskl
    Participant
    Post count: 37

    Hi,

    I am using enterprise theme which has 2 Nav menus,

    however, I am struggling to find a way to control the second menu/sub menu
    so it changes automatically depending what is the category/slug

    Because I am trying to migrate old site to Genesis.. manually selecting sub menu for each post/page seems like a lot of pain with almost 2,000 posts/pages..

    i have found some plugins to control widgets based on category, but no luck with conditional menus..

    genesis-subpages-as-secondary-menu  plugin – is no good, does not work on posts, only pages

     

    any help would be really appreciated, I can’t imagine I am the only one trying to achieve this :)

    kris

    #11742

    ATUB
    Participant
    Post count: 12

    Take a look at Genesis Simple Menus Plugin – http://www.studiopress.com/plugins/simple-menus

    It says you can change the secondary nav menu by category.


    #57091

    kriskl
    Participant
    Post count: 37

    It took me a while to get back to this issue,

    Yes, I am using Genesis Simple Menus plugin, but it does not allow me to set automatically secondary menu based on the slug,
    I have to change it manually.. for 2,000 or so posts :(
    that;s why I wondered if there is a way to make it pick the correct secondary menu based on the slug that is used

    #57102

    braddalton
    Participant
    Post count: 10594

    So you want to display the sub nav for posts in specific categories or on category archive pages?


    #57127

    kriskl
    Participant
    Post count: 37

    I would like to show sub menu for all pages and posts
    each post belongs only to one category

    #57131

    braddalton
    Participant
    Post count: 10594

    In what position? Before or after header?

    Can you link to your site please.


    #57146

    kriskl
    Participant
    Post count: 37

    here is one page (blue is secondary menu)

    http://opentuition.com/acca/

    and here is another

    http://opentuition.com/aat/aatunit30/process_sales_and_receipts/

    these are strictly “wordpress pages”, (but later on, for the acca as one category there are many posts belong only to it

    while aat is another category.

    so, this post – should display proper aat menu, not default secondary menu
    etc.

    I hope that makes sense?

    • This reply was modified 1 year, 3 months ago by  kriskl.
    • This reply was modified 1 year, 3 months ago by  kriskl.
    • This reply was modified 1 year, 3 months ago by  kriskl.
    • This reply was modified 1 year, 3 months ago by  kriskl.
    #57155

    braddalton
    Participant
    Post count: 10594

    What you can do is remove either the primary or secondary menu conditionally.

    How many menus do you want to display on pages and posts?


    #57160

    kriskl
    Participant
    Post count: 37

    uhm, not sure I understand,
    both primary and secondary menu are always visible,
    Only the content of the secondary changes (or rather, a different menu becomes the secondary menu) based on what category the post belongs to (or the slug of the post),

    #57162

    braddalton
    Participant
    Post count: 10594

    Have you tried the Genesis Simple Menu’s plugin?

    Otherwise you will need custom code with conditional tags.

    I’m assuming you want to display a different sub nav depending on which category your posts are assigned to.

    How many menus have your created?

    Still not clear on exactly what you want.


    #57168

    kriskl
    Participant
    Post count: 37

    sorry, it;s my bad english :)

    here is the post link

    http://opentuition.com/acca/f3/depreciation-example-5/

    (it has ‘acca’ in the slug, it belongs to ‘acca’ category.
    and yet, the submenu – is the default secondary menu,
    not the menu I have created specially for this category ‘acca’
    using simple menu plugin. I can set the secondary menu to ‘acca’ but it has to be done manually for every post.
    so, that’s sucks :)
    I want to find a way to make it automatically..

    the the description, Genesis simple sidebars might work (if I could replace secondary menu with the widget area..
    I will try this plugin and see if it works the way I expect.

    thank you for your time.

    #58210

    kriskl
    Participant
    Post count: 37

    Alright, I think the solution to my ‘problem’ is to create a custom category templates with Genesis

    does anyone know of good tutorials?

    thanks
    kris

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

You must be logged in to reply to this topic.