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.
By Jhun Vert on
Hi guys, I want to do this in my theme:
If in frontpage
no title
else
<h1 class="title"><?php print $title ?></h1>
I am not a coder but I can hack some php codes. I appreciate your help. Thanks in advance.
Comments
This will work in both
This will work in both page.tpl.php and node.tpl.php (you don't say which file you want this for)
Thank you very much. I used
Thank you very much. I used it to page.tpl.php. I set my front page to forums and I dont want the title page Forums to appear. Again, thank you very much.