The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Add active class to child of custom post type
Hey,
I am using two custom post types on this website: http://myankle.co.uk.s156312.gridserver.com/conditions/ & http://myankle.co.uk.s156312.gridserver.com/treatments/
Both show the “is-current” and “is-root-parent” to the navigation so the blue rectangle displays. However when you click the “more” link on a condition item or treatment item, the active class is removed.
Any ideas why this is being removed?
What are you using to call the navigation? Which WordPress PHP call?