Hammer Beta Support for High Sierra & Mojave Available Download.

Buy Hammer
Download
Features
Take the tour
Templates
Browse gallery
Docs
Read up
News + Updates
All the latest about Hammer

Navigation Helpers

Show Menu

Traditional navigation menus tend to work the same way, so we’ve standardized this in Hammer and take care of the dynamic aspects for you. When Hammer sees an href that’s linking to the page it’s on, it adds a class of ‘current’ to the anchor tag and to be extra helpful, if the anchor tag is wrapped in a list item, the list item also gets that ‘current’ class.

In the example below we’re looking at the about.html file in our Build folder:

To help out with nested navigation, links pointing to the current directory's, or to a parent directory's index.html file are given the class 'current-parent'. This means that no matter which page you're in, your primary navigation can always have a 'current-parent' class if you're in that folder. For instance, if you're inside docs/info.html, then any links to docs/index.html will have the 'current-parent' class.

In the example below we’re looking at the about.html file in our Build folder:

Have a question, want to beta test new releases or have an issue you're stuck with?

Join our supportive community Slack Team and get in touch with us directly. We love to help!

Free Trial
Buy Hammer
Anvil is a beautiful menubar app that can run your Hammer builds under local .dev URL’s - great if you’re using web services like Typekit. Find out more and download it for free at anvilformac.com