Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I don't think that this from node.tpl.php works any more:
<?php if (!empty($content['links']['terms'])): ?>
<div class="terms terms-inline"><?php print render($content['links']['terms']); ?></div>
<?php endif; ?>
</div>
<?php endif; ?>
The classes on the terms are the default from core such as 'field-type-taxonomy-term-reference' not "terms terms-inline" .
Comments
Comment #1
Scott J CreditAttribution: Scott J commentedAnyway, now that we have term reference fields, we probably want to leave the control of this at admin/structure/types. The easiest method that I have found for adding/changing classes is to use a field--taxonomy_term_reference.tpl.php template file.
Comment #2
JohnAlbinThanks, Scott! A patch would have been nice, but you gave enough description that I found all the code and all the classes that needed to be nixed.
You're in the CHANGELOG now!
Fixed. http://drupal.org/cvs?commit=501444
Comment #3
Scott J CreditAttribution: Scott J commentedSorry I didn't get around to posting my file. I did post one over here ;-)