I want to customize the <?php print $terms?>

Right now it is taking the ul and li css style definition from somewhere (probably my normal content ul/ li styles, as I haven't defined "links inline"). I want to change the class definition to a custom class.

2. Where do I change the class name of the class "links inline" in my template? Would this be in template.php? And if so how would I do this? Because if I do this in my custom node.tpl.php it gives me WSoD:

<?php
// phptemplate_node
    'terms'          => theme('links', $taxonomy, array('class' => 'links inline term-links')),
?>

Source: http://drupal.org/node/104200

Something else I noticed is the title tag from the $term tag is being shown empty in my theme. Is this something I need to define in my template or a bug?

Comments

dstotijn’s picture

If you want to replace the default 'links inline' classes that $terms outputs, add this function to template.php:

function phptemplate_preprocess_node(&$vars) {
$terms = $vars['taxonomy'];
if ($terms) {
  $vars['terms'] = theme('links', $terms, array('class' => 'your_new_class_name'));
}