Show active menu on single page

A post was split to a new topic: How to append class=“active” to a page that’s using a single.html layout