Theming Drupal Menu

This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.


48 points

Hi,

I have added a drupal menu to my site. I want to alter the html code for only this one menu so that the main menu ul can have a custom ID and CLASS. How can I do this? I have searched the forums, and have tried the instructions here: but they seem to be only for secondary and primary links not other menus. Thanks in advance for the assistance.



0 points

The following code snippet would help:


<?php
$menuhtml 
theme_menu_tree(182);
return 
"$menuhtml";
?>

Anonymous's picture
Created by Anonymous
-4 points

Check this code snippet here for drupal menu theming.

Anonymous's picture
Created by Anonymous

Post Comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.