How can I apply the “current state” to buttons in the main menu when a user visits a custom post type single page?
Commonly available code snippets don’t seem to work in Cwicly.
I know that this has been discussed in other threads but it doesn’t seem that there is a solution for this request. Is there a workaround to achieve this? Thanks!
I really appreciate your help! Unfortunately, I am having a hard time answering your questions.
This is what I try to accomplish:
I have a main menu item called “Work”.
When a user clicks on “Work” it will lead to the work archive page (CPT Archive) and the main menu item button “Work” is blue.
Clicking on a specific project will lead to the project detail page (CTP single)
Goal: Having the main menu item button “Work” blue when a user visits any of the CPT single pages. Currently the button “Work” is black instead of blue
Sorry for the long explanation. Please let me know if you need more information from me.