Need example

I see that the "styles" parameter is included in the menu class. It says it is a nested array, but there is no documentation of what its structure is to be.

I will be using code similar to
<?php echo fuel_nav(array('container_tag_id' => 'topmenu', 'item_id_prefix' => 'topmenu_')); ?>

I have a 2-level menu that needs a specific class on every

It needs the same class both in the main menu bar and in the dropdowns.

Can you give me an example of how FUEL wants that styles array structured?

Thank you


  • sorry -- my tag got stripped. It needs to be on every li

  • The index of the styles array indicates the nested depth to apply the styles:

    <?php echo fuel_nav(array('container_tag_id' => 'topmenu', 'item_id_prefix' => 'topmenu_', 'styles' => array( 0 => 'level1', 1 => 'level2'))); ?>
  • Thank you. That helps a lot.

Sign In or Register to comment.