I would avoid JS where possible, but if you need to give a class to the current link’s parent element,
<script>
$(function() {
$('.w--current').parent().addClass('active');
});
</script>
@seank should provide more info on the project instead of us trying to figure out what exactly he needs.
I am always here, but will only focus on replying to topics in the general/codehelp categories, that have a clear problem statement, a share+published link, and one that I can put together an answer in less than 10 minutes.