On this page
Control/modify display settings (author and date) on posts
Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites
When you create an article or page in Drupal 7, by default, it displays Author and Date information after the title, something like:
published by admin on Thu, 02/17/2011 - 11:08
If you don't want to see this information, disable the Display Settings option for the corresponding content type with these steps:
1. Log-in as Admin and choose Structure, Content types and click edit (under Operations) for the corresponding content type (e.g. Article).
2. Click Display Settings and un-check Display author and date information check box.
3. Save settings by clicking the Save Content Type button.
Now, the author and date information will not be displayed for the corresponding content type.
How about if you want to display the date information but not the author information, e.g. you want to see something like:
Posted: February 23, 2011
To accomplish this,
1. Enable Display Settings for the corresponding content type.
2. Edit the node.tpl.php file of the corresponding theme you are using, e.g. themes\bartik\templates\node.tpl.php and located the following command:
print $submitted;
3. Now replace this command with the following code:
// print $submitted;
if ($submitted) {
echo "Posted: " . date( "F j, Y",$node->created);
}
4. Save the file and you should see the submitted information in the desired format. Of course, you can use a different date format or add additional node details.
Modules
Modules that let you perform the operations above without programming skills:
- Display Suite provides separate display options for node Author and Date, under the Manage display settings of a content type
- Submitted By adds a fieldset to your node edit form called Appearance that lets you use the token module to insert the text you want to display.
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion