By jcjohnson on
I am needing to remove the title of a menu. I want to be able to enter in the words "no title" to any root menu (not menu item) and hide the title. It sounds very simple, but I am pulling my hair out. I am modifying a theme that is using PHPTemplate, here is what I have done it the template.php. For some reason it hides every menu item... not just the menu title like I was going for.
function phptemplate_menu_item($mid, $children = '', $leaf = TRUE)
{
$menu = menu_get_root_menus(); //get menu title
foreach ($menu as $root_menu)
{
if ($root_menu == 'no title') //check to see if title is "no title"
{
$root_menu = '';
return $root_menu;
}
}
}