Created
January 26, 2012 02:11
-
-
Save joshuapowell/1680494 to your computer and use it in GitHub Desktop.
Drupal: Wrap all menu elements with an HTML <nav> tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implementation of theme_menu_tree(). | |
*/ | |
function MYTHEME_menu_tree(&$variables) { | |
return '<nav><ul class="menu">' . $variables['tree'] . '</ul></nav>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment