I want to hide a page title and date/editor (meta) in Drupal

Discussion in 'Drupal' started by needesigner.com, May 22, 2009.

  1. #1
    does anyone know how to do it?

    If you are saying to use CSS display: none, how to put the code in Drupal?

    Or other solutions like modules?
     
    needesigner.com, May 22, 2009 IP
  2. pod

    pod Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think you would want to open up your node.tpl.php file in your theme directory and remove these lines:
    <?php if ($page == 0) { ?><h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h2><?php }; ?>
    <span class="submitted"><?php print $submitted?></span>

    - this will remove the page title and submitted information from the node page.

    HTH
     
    pod, May 23, 2009 IP
  3. needesigner.com

    needesigner.com Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You are right! thanks!
     
    needesigner.com, May 24, 2009 IP