Content last modified Tuesday 24 August 2021
hop to #bottom

Dynamic Sub Menu with active class

This is not for sections, but article navigation. It is a recipe for a sub navigation with highlighted current article links in the sub-menu.

*Very Useful for a typical business-style web site with sub-pages in a section.*

I searched for quite some time before I found the bits and pieces to put together this recipe for a dynamic sub navigation with a class=“active” attaching itself to the current menu item. This allows you to apply styling to the active menu item without having to hard code the links in your page (template) every time you add an article.

All 1087 articles are stored in the treasure rooms that are the Archives.
Published with Textpattern