Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

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?


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