I have a few main menu items that are collections.
The problem is that when I’m viewing a post inside one of these collections the main menu heading doesn’t know to be active.
Any tips on how to make this active?
I have a few main menu items that are collections.
The problem is that when I’m viewing a post inside one of these collections the main menu heading doesn’t know to be active.
Any tips on how to make this active?
We added a set of new helpers to Ghost themes to solve this exact problem this week in Ghost 2.27.0.
Documentation is still WIP, but basic usage info can be found here: New helpers: {{concat}}, {{link}} and {{link_class}} by ErisDS · Pull Request #10971 · TryGhost/Ghost · GitHub
Amazing! Thanks for the heads up.
Update: We’ve now added documentation on link
and link_class
which provide methods to add active classes to elements