I am using this little snippet of code in my theme's template.php to add primary link specific CSS to other menus.

function deskglue_menu_tree($tree) {
  return '<ul class="tabs primary-links">'. $tree .'</ul>';
}

My idea is to have this code executed for specific blocks only.
Anyone have an idea how that would work?

Comments

agir’s picture

I am dealing with the same problem. Easiest would be to get access to $block variable but I have no idea how to do that. Can anybody please help?
Thx