Apply active class to "a" element in fuel_nav

edited September 2016 in Modules
Hi everyone,

I have a question regarding the nav class. I want to render a simple plain list of links with the help of the navigation class.
So I came up with the following, which works fine:

<?=fuel_nav(array('container_tag' => '', 'item_tag' => ''))?>

The output of this is - as expected a simple list of a elements:

<a href="">Link</a> <a href="">Link</a> <a href="">Link</a>

But, I would like to render the active class to these a elements. How is this possible?

Comments

  • edited 1:51PM
    Set the "active" => '{menu_item_id}' to fuel_nav. By default, the current URI is passed.
Sign In or Register to comment.