How to hide Author and Date information in Drupal 7

Category: 

By default Drupal Blog, Story pages will show author and date information just below the title of the post.
In Drupal 6, show / hide author and date information option was in theme setting page. But in Drupal 7 it is in Content types settings.

How to hide Author and date information in Drupal 7

  • Login as Drupal administrator
  • Navigate to: Administration >> Node >> Content types
  • Click Edit link of content type of which you want to hide author and date information
  • Click Display Settings tab and un-check "Display author and date information".
  • Click "Save content type" button.

Done!! Now Drupal 7 will not show Author and Date information in posts for this content type.

Comments

Tony's picture

Tony (not verified)

01/Dec/2011 - 02:48pm


Hi, thank you for your help. Just to comment about removing the author. Even after doing the steps you gracefully shared with us, the author still shows on search results, like, in my case, I'm searching for products I carry on my site and the result shows both the product and the person that entered the product into the system. I haven't found a way to remove authors from search results yet. (p.s. I'm looking at your themes. I think I will become your customer in the next few days). ta

admin's picture

admin

01/Dec/2011 - 06:32pm


@Tony,
Search result page is controlled by Drupal search module. So, the above method will not work for search results page.

However, you can hide Author, Date and comment number from search results by few methods. Easiest method is:

  • Open style.css of your active theme in a text editor.
  • Add following code in style.css
    .search-info {
    display: none;
    }
  • Save style.css
  • Done!!!

prossel's picture

prossel (not verified)

09/Dec/2011 - 02:43pm


This is not a good method. Search engines (google...) will still index the names and even show them in search result abstracts.

Better use a 1 line function in template.php. See:
http://drupal.org/node/1101554#comment-5345554

hdcoder.com's picture

hdcoder.com (not verified)

22/Dec/2011 - 07:34am


How hide author in RSS?

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
9 + 6 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.