In the content type settings page, under display settings, there is a single checkbox allowing me to display or hide both author username and publish date. The choice is either both or neither. 

I want to hide the author name, but display the publish date (for all items of a particular content type). 

Is there a simple way to do this? Can I do it in my sub theme's custom stylesheet?

Or is it best to disable them both in the content type settings, then create a new field just to show the publish date?

What's the best practice here?

Comments

ressa’s picture

You could do it with a custom Twig template, or even a Views inserted block.

But it seems like a reasonable feature to expect from Drupal core, to be able to select from these options, via radio buttons:

  • Display author and date information
  • Display author information
  • Display date information
  • Display none

EDIT: I found the issue #2353867: [META] Expose Title and other base fields in Manage Display and the Manage display module, which adds individual "Authored on" and "Authored by" fields on the Display page.