Wordpress-Bem-Menu icon indicating copy to clipboard operation
Wordpress-Bem-Menu copied to clipboard

Mark parent navigation active when on custom post type single page

Open mdominguez opened this issue 9 years ago • 4 comments

First of all, thank you for your effort in this piece of code! :) Problem: when you visit a custom post type's single page, the parent menu item (the post type archive) isn't marked as active.

Thanks in advance for resolving this!

mdominguez avatar Jul 17 '16 10:07 mdominguez

Hey @mdominguez I'm on vacation at the moment but I will take a look into this as soon as I can. If you manage to fix it yourself feel free to submit a pull request which I will test and merge :)

roryashfordbentley avatar Jul 19 '16 18:07 roryashfordbentley

Hello and thanks for the great code! Any update on this?

For regular WP menu this solution seems to work: https://gist.github.com/gerbenvandijk/5253921#gistcomment-1281838

runnickrun avatar Jun 27 '17 12:06 runnickrun

Hey @runnickrun , thanks for the kind words. I will check out the Gist you posted and see what we can do. Im really swamped with work at the moment so feel free to submit a PR if you get it working and I'll happily merge it.

roryashfordbentley avatar Jun 27 '17 12:06 roryashfordbentley

Thanks, I understand if you're busy so no problem. I just don't think I have enough knowledge for accomplishing it.

runnickrun avatar Jun 27 '17 17:06 runnickrun