Closed (fixed)
Project:
Gesso
Version:
7.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Oct 2015 at 19:24 UTC
Updated:
19 Nov 2015 at 19:34 UTC
Jump to comment: Most recent
includes/navigation.inc > hook_links()
The $class array is not initiated at the start of the iteration and this causes an increment of the menu items classes.
ex :
<li class="nav__item nav__item--en-US active">...</li>
<li class="nav__item nav__item--en-US active nav__item nav__item--fr">...</li>
...To fix that all you have to do is to replace line 110 in includes/navigation.inc :
foreach ($links as $key => $link) {
// Add default core classes if wanted.
if (!$only_use_smacss) {
$class = array($key);
}By
foreach ($links as $key => $link) {
$class= array();
// Add default core classes if wanted.
if (!$only_use_smacss) {
$class = array($key);
}
Comments
Comment #2
corentin.crouvisier commentedComment #4
dcmouyard commentedThanks for finding this!