18

In Drupal 6 the option to remove that text was located in the theme settings; where is it in Drupal 7?

20

For the "basic page" type, it would be example.com/admin/structure/types/manage/page/edit. For the "article" type, it's example.com/admin/structure/types/manage/article/edit.

  • I don't know why this answer has been down-voted, but example.com/admin/structure/types/manage/article is the correct path for the "article" content type. The /edit part doesn't make any difference, as "Edit" is the default tab. – kiamlaluno May 9 '11 at 0:19
  • You are correct, /edit is the MENU_DEFAULT_LOCAL_TASK, so it is loaded even when omitted. – tim.plunkett May 9 '11 at 3:53
22

You can find the option by editing the content type settings.

Structure > Content Types > Type Name

Click Edit

Then uncheck the Display author and date information. option in Display Settings.

  • Where is that in D7? the path is what is need. – J-Fiz May 8 '11 at 10:43
  • This removes the tiny text which might be needed. This doesn't remove "Submitted by" – user1071840 Apr 20 '13 at 20:41
3

Module Submitted By is a more fine-grained solution FWIW. Here is a quote about it (from the module's project page):

... lets you control the format of the "Submitted by" information on your content per content type. It adds a fieldset to your node edit form called Appearance that lets you put in a tokenized pattern for the text you want to display.

Depends on Token module. Note: This module does not create any data; rather it relies on other modules providing that data through Token.

You might find the Custom Tokens module useful for things that aren't already provided.

0

In case you want to hide the "Submitted by" text in code, which is rather more flexible than the node settings:

function my_theme_preprocess_node(&$variables) {
  if ($variables['submitted']) {
    $variables['submitted'] = t('!username on !datetime', array('!username' => $variables['name'], '!datetime' => $variables['date']));
  }
}

Not the answer you're looking for? Browse other questions tagged or ask your own question.