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.
What do I delete to remove the header on a page-node-[content type].tpl.php?
I have deleted the whole heading, but it still displays. I want the content to start on the top of the page.
Thanks
Comments
Comment #1
shruti.sheth CreditAttribution: shruti.sheth commentedHello,
I hope my answer proves helpful to you for solving this issue.
I performed the following steps to create a custom page-[content-type].tpl.php and was successful in removing the heading from it and start the content from the top of the page.
STEPS :
1. Added the following code in template.php, please replace my_theme to the custom theme name
2. Created a page-[content-type].tpl.php, in the page-[content-type].tpl.php please replace [content-type] with the machine name of the content-type for which custom page.tpl.php is required
3. If the heading is to be removed , the following code needs to be removed from page-[content-type].tpl.php
Please clear the cache
Thanks
Comment #2
oadaeh CreditAttribution: oadaeh at Flatt and Sons commentedThis issue is being closed because it is against a branch for a version of Drupal that is no longer supported.
If you feel that this issue is still valid, feel free to re-open and update it (and any possible patch) to work with the 7.x-4.x branch.
Thank you.