Selectively Remove H2 Title On Some Static Pages
| Project: | B7 |
| Version: | 5.x-1.2 |
| Component: | Style |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
I would like to have some static pages not show the title, but have been unable to achieve this with PHP or by amending node.tpl.php or page.tpl.php. I did achieve it on the frontpage by creating page-front.tpl.php, but the fix if applied elsewhere removes all H2 titles on static pages.
I am prepared to pay you for this amendment. You can view the site at http://www.durantlaw.info/ . Specifically what I am trying to achieve is the title Business Network Analysis™ on this page http://www.durantlaw.info/BNA to either be invisible or preferably not be there and look like the frontpage. I want to do this on several other static pages, but not all.
As I said before I am prepared to pay you for this enhancement. Thank you for your help.
Regards Graham

#1
Sorry about being so slow at getting back, but it fell to the bottom of my email pile, and I've been busy. I'll see what I can figure out tonight if I can remember, and I'll get back to you.
#2
Here's what I came up with. Take a look at the page at http://drupal.org/node/190815 . Look at the section with "page-[title|internal/path].tpl.php". So if you want node 7 to have a page without an H2, create a copy of page.tpl.php to page-node-7.tpl.php . Take out the following section:
<?php if ($title != ""): ?><h2 class="content-title"> <?php print $title ?> </h2>
<?php endif; ?>
Copy that file to whatever other node numbers you need to exclude the h2 on.
Otherwise, you can modify the if statement to exclude certain node numbers if you'd like. Is there anything else you need from me?
#3
Thank you for your trouble and effort. I appreciate it.
Regards Graham
#4
subscribing, greetings, Martijn