I’m trying to make a top level menu item active when on one of its child pages.
I already have the JS script for .current-parent-page active on the header though not seeing the desired behaviour:
setInterval ( function(){
jQuery('.current-menu-item > a').addClass('x-active');
jQuery('.current-menu-item > a .x-particle').addClass('x-active');
jQuery('.current-page-parent > a, .current-menu-parent > a').addClass('x-active');
}, 500 );
I’m hoping to make active the ‘current’ menu item (blue color and gold particle) when on a child project page e.g. https://davidliddiard.com.au/current/hampton-project
Any ideas here?