Libre Software

Twenty Fifteen WP theme: the right way to remove post dates and author

If you’re trying to remove the post dates and author in WordPress Twenty Fifteen theme, you could just add the following code to the style.css file of your child theme:

.entry-footer {
display:none !important;

An awful lot of WordPress forums show an excessive use of this CSS trick. It works perfectly, except for one detail: the date and author are only hidden (i.e. not displayed in the browser), but they are still present in the page source code!

Check it by yourself: first change the CSS code and refresh your page. Then hit Ctrl + U to display the source, and search ( Ctrl + F ) for “entry-footer”. Your post date and and author are still there. Google and other bots and crawlers see it, and some people argue that dating posts may be bad for SEO (in some cases).

Definitely remove post date and author from the source code

If you want a fast and easy solution, here it is. Just add following lines to the functions.php file of your child theme, inside the <?php and ?> tags:

/* Remove everything from post footer (aka entry footer) */
function twentyfifteen_entry_meta() {

This will safely remove all content from the so called entry footer, but won’t remove the entry footer itself. You can still use the CSS trick up there to hide the footer space itself. Check out how it looks like on my new website about ethical banking: I used both the php and the CSS code.

Twenty Fifteen - Remove post date and authorNote that this code will only work so easily because the twentyfifteen_entry_meta() function is “pluggable” and can be overridden in the child’s functions.php file. If you want to customize the entry footer to add categories, tags, “add a comment” or social links, check out the following excellent post describing the twentyfifteen_entry_meta() function, which controls the post footer:
Custom meta in Twenty Fifteen

Finally, here is another really useful article about overriding theme functions, which may also be helpful to remove the meta info (post author, date, categories, etc.) of other themes, and much more:
The Right Way to Override Theme Functions

More useful articles on WordPress and WordPress Multisite

Check out the following posts on setting up a WordPress site network and backing up Multisite WP setups:
Cheat-sheet: Creating a new WordPress site (within a site network)
A comparison of free multisite-compatible WP Backup plugins

  • All
  • Archive
  • Image
  • Linux
  • Linux Server
  • Smartwatches
  • Updated
  • WordPress
LibreOffice installation on Linux

How to install LibreOffice 7.4 on Linux Mint, Ubuntu, MX Linux, Debian…

Last updated on September 27, 2022 This article describes how to install LibreOffice 7.4 on Debian/Ubuntu-based Linux distributions, such as Linux Mint, MX Linux, Ubuntu …

Read More →

AVIF browser test page: AVIF support in Chrome, Firefox, Edge…

Logo: Alliance for Open Media. License: BSD Last updated on September 29, 2022 Is your browser capable of displaying AVIF images? Here comes a fast answer …

Read More →
How to remove TLSv1.0 and 1.1 and enable TLS 1.3 in Nginx on Ubuntu Server
Linux ServerUpdated

How to remove TLSv1.0 / 1.1 and enable TLS 1.3 in Nginx …

Photo: License: CC BY-SA 4.0 … on Ubuntu 18.04, 20.04 or 22.04 Last updated on September 29, 2022In January 2020, SSL Labs started to …

Read More →
How to install Mozilla Firefox on Linux (Ubuntu, Linux Mint or any Linux distribution)

How to Install Firefox 105 on Linux Mint, Ubuntu, Debian or any other Linux distribution

Photo: janeb13 / Pixabay, Pixabay License Last updated on September 27, 2022 This how-to explains how to install Firefox on Linux, with or without replacing an existing …

Read More →
ExifTool Command Line - Edit image metadata on Linux - Display all Metadata information

How to edit metadata via the command line with ExifTool

In a previous post, I tried to find a metadata editor with a graphical user interface on Linux. The best solution, DigiKam, is designed for …

Read More →
Install Geekbench on Linux (Tutorial)

How to install Geekbench 4 and Geekbench 5 on Linux

If you want to install and run Geekbench 4 or Geekbench 5 on Linux, follow this tutorial. The following instructions can be used on: a …

Read More →
Libre Software

How to Sync Fonts Between Linux Devices

This small guide is about syncing fonts between two or more Linux devices, for example one laptop and one desktop computer, both running any Linux …

Read More →
Libre Software

How to add a new domain/website to a WordPress network (multisite)

In this post you’ll find how to add a new site with a new domain name to your existing WordPress network (aka multi-site installation). What …

Read More →
Sudo on CenOS, Red Hat Enterprise Linux and Scientific Linux

Sudo on CentOS / Scientific Linux / RHEL

This short howto is about setting up sudo on Red Hat Entreprise Linux and its derivates CentOS and Scientific Linux. It also gives a quick …

Read More →
Which Samsung Galaxy Watch should I choose?

Choosing the Right Samsung Galaxy Watch4: Size, Weight and Thickness

Photo: License: CC BY-SA 4.0 Galaxy Watch 40/44mm or 42/46mm “classic”? Last updated on October 1, 2022 How thin is the Galaxy Watch4? Thickness …

Read More →

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.