Overriding template files for taxonomy nodes in Drupal 7

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Rajat Bandyopadhyay's picture

Guys,

I am having a problem in overriding .tpl.php files for particular taxonomy terms in my site. I have taxonomy-term.tpl.php in my theme folder and trying to override a term with tid = 30. So what I do is create another file namely : taxonomy-term--30.tpl.php in the theme folder without writing any extra preprocess function in the template.php page in my theme folder for overriding the template file I added.

Unfortunately what happens is, the term page gets overridden but not entirely. Precisely, we have a listing of contents corresponding to the term as per the standard layout of Drupal Taxonomy Pages by default. I do not want this listing to show for the particular categories I override by creating separate term pages in my theme folder.

N.B : The Taxonomy Term View is being disabled.

Please Help.

Bangalore

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: