Community Forums › Forums › Archived Forums › General Discussion › Conditional Sub menus – controlled by slug / category
Tagged: menu
- This topic has 11 replies, 3 voices, and was last updated 11 years, 6 months ago by
kriskl.
-
AuthorPosts
-
December 30, 2012 at 8:56 am #8350
kriskl
ParticipantHi,
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/slugBecause 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
January 13, 2013 at 10:00 pm #11742ATUB
ParticipantTake 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.
August 17, 2013 at 4:09 pm #57091kriskl
ParticipantIt 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 usedAugust 17, 2013 at 5:39 pm #57102Brad Dalton
ParticipantSo you want to display the sub nav for posts in specific categories or on category archive pages?
August 18, 2013 at 1:28 am #57127kriskl
ParticipantI would like to show sub menu for all pages and posts
each post belongs only to one categoryAugust 18, 2013 at 5:39 am #57131Brad Dalton
ParticipantIn what position? Before or after header?
Can you link to your site please.
August 18, 2013 at 8:57 am #57146kriskl
Participanthere is one page (blue is secondary menu)
and here is another
these are strictly "wordpress pages", (but later on, for the acca as one category there are many posts belong only to itwhile aat is another category.
so, this post - should display proper aat menu, not default secondary menu
etc.I hope that makes sense?
August 18, 2013 at 9:42 am #57155Brad Dalton
ParticipantWhat you can do is remove either the primary or secondary menu conditionally.
How many menus do you want to display on pages and posts?
August 18, 2013 at 10:17 am #57160kriskl
Participantuhm, 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),August 18, 2013 at 10:22 am #57162Brad Dalton
ParticipantHave 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.
August 18, 2013 at 10:36 am #57168kriskl
Participantsorry, it;s my bad english ๐
here is the post link
(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.
August 22, 2013 at 9:18 am #58210kriskl
ParticipantAlright, I think the solution to my 'problem' is to create a custom category templates with Genesis
does anyone know of good tutorials?
thanks
kris -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.