Hey, In my theme directory I have page.tpl.php and node.tpl.php
Im looking for the 'help' div, which is in niether page, where is the help div defined? In what file will I find the oopening for the div?
< div class"help" >
Thanks

Comments

nevets’s picture

Should be in page.tpl.php I believe though it could be inside the message area. Look outward from the help div, either it or one of the near parents should be in page.tpl.php. The firebug extension for Firefox is useful for this.

raffi’s picture

the

is defined in includes/theme.inc file

and it's outputted in your page by the following line in your page.tpl.php
print $help

You can override it by adding the following function in template.php file

function phptemplate_help() {
  if ($help = menu_get_active_help()) {
    return '<div class="help">'. $help .'</div>';
  }
}

for example if you want to change the class="help" into something else just add the following lines in the template.php file of your theme.

function phptemplate_help() {
  if ($help = menu_get_active_help()) {
    return '<div class="something else">'. $help .'</div>';
  }
}

Please let me know if this worked for you.