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.
The title doesn't show there unless I move the print $title out of node.tpl.php and into page.tpl.php
Is there a reason for it to be that way or is what I posted a proper fix?
Comments
Comment #1
butler360 CreditAttribution: butler360 commentedHmm, now my blog posts show two titles. I'm using a node-blog.tpl.php file to customize the output of blog posts. Is there a way to exclude the title from being printed in page.tpl.php only for the content type "blog"?
Comment #2
butler360 CreditAttribution: butler360 commentedOK, I got around that by putting this into page.tpl.php:
But now I get no titles for taxonomy items (the title of the category is at the top but individual items don't show).
Comment #3
ipwa CreditAttribution: ipwa commentedHi @butler360, I'm going to add title to the page template where it belongs, and remove it from the node template. Thanks for reporting this.
Comment #4
butler360 CreditAttribution: butler360 commentedExcellent, thanks.