0

I'm invoking a menu block programmatically using: module_invoke('menu_block', 'block_view', 13);

What I want to do is change and add classes to the wrapper & ul tags of the menu block, is this possible? I can't seem to find a class_array to add & have spent a significant amount of time looking through documentation & online but not come up with a solution.

0

borrowed from here:

add the following code in your template.php file.

<?php
  function THEME_menu_tree__main_menu($variables) {
    return '<ul class="nav navbar-nav navbar-right">' . $variables['tree'] . '</ul>';
  }
?>

this would update the <ul> for main menu, adjust as necessary. You can adjust further up the chain within the page.tpl.php file.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.