I'm using suckerfish menu. It'll be best if I could define/add my own ul class "sf-menu".
Is there any way to do this with the module?

CommentFileSizeAuthor
#4 add_wrapper_template_per_level.patch1.32 KBgaborpeter
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JohnAlbin’s picture

Status: Active » Fixed

Menu block's ULs are just generated using Drupal's standard theme_menu_tree(). So you can override that add classes to the UL.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

technicka’s picture

Status: Closed (fixed) » Active

This has put me in the right direction, but I was wondering if anyone could walk me through how to do this:

I would like to add 2 classes to ONLY the parent <*ul*> of ONE of Menu Block divs.

I put this into my template.php file:

function beckystheme_menu_tree($tree) {
  return '<ul class="menu nice-menu nice-menu-down">'. $tree .'</ul>';
}

That is working, it's just that is is being applied to EVERY ul, whereas I would just like the parent to get these classes. Also, I only want this to apply to ONLY one specific menu block (div#block-menu_block-4).

I understand I am missing a lot of logic in the function, but if some one could give me an idea hopefully I can figure it out. Thank you so much for your help and the great module.

gaborpeter’s picture

Issue summary: View changes
FileSize
1.32 KB

Check out my patch, which adds the possibility of creating a wrapper template per level.

JohnAlbin’s picture

Status: Active » Closed (won't fix)