Active menu item not styled correctly if first or last

edited September 2011 in Modules
I don't know if this is a bug or if I don't know what I am doing here. I have a valid CSS menu class which styles my selected item differently than my non-selected one, my active style class is named "selected". So, I tried the following code. This code works fine as long as the menu item is not the first or the last one.

<div id="nav"> <?php echo fuel_nav(array('active_class'=>'selected', 'first_class'=>'', 'last_class'=>'', 'container_tag_id' => 'topmenu', 'item_id_prefix' => 'topmenu_')); ?> </div>

Although the first_class and last_class style tags are no longer rendered in the HTML, the 'class="selected"' directive is not rendered if its the first or last menu item.

Am I missing something obvious here?

Thanks in advance.

Comments

  • edited 3:13AM
    Hmm... I'm not seeing that locally. Just so I'm sure, are you using the latest version? Also, could it be that it's not selected because the active menu item is not set correct. By default, the active menu item is the current URI path (e.g. about/history).
Sign In or Register to comment.