aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/navigation/menu/elements/item.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/views/default/navigation/menu/elements/item.php b/views/default/navigation/menu/elements/item.php
index 893bbd205..55ddc2fe4 100644
--- a/views/default/navigation/menu/elements/item.php
+++ b/views/default/navigation/menu/elements/item.php
@@ -21,8 +21,11 @@ if ($children) {
}
$item_class = $item->getItemClass();
+
+//allow people to specify name with underscores
+$name = str_replace('_', '-', $item->getName());
if ($item_class) {
- $class = "class=\"$item_class\"";
+ $class = "class=\"elgg-menu-item-$name $item_class\"";
}
echo "<li $class>";