Categories

Featured templates

WordPress. How to hide time and date from the post page

Norman Fisher December 19, 2011
Rating: 4.7. From 3 votes.
Please wait...

How to hide the date and time(timestamp) in WordPress (post)

In order to hide a timestamp in WordPress on your blog posts, please do the following:

  1. Login to your WordPress admin panel.
  2. Go to Appearance ->Editor.

  1. Make sure that the theme you are going to edit is selected from the right-hand menu at the top.
  2. Look for the file called (index.php or single.php) (the file name depends on the template) under the “Templates” on the right. Click on that.
  3. You can skip this step, but it is highly recommended that you make a copy of the original code before making any changes to it.
  4. Using Control + F (MAC: Command + F) look for the following part in the code:
<?php the_time('F j, Y'); ?> at  <?phpthe_time() ?>

(template specific, so it may look not exactly the same, but similar)

  1. Surround the lines with the following comment markers (<!–and–>) so it would look like
<!--<?phpthe_time('F  j, Y'); ?> at <?phpthe_time() ?>--> 

or simply delete the whole part

  1. Click on “Update File” at the bottom of the code.

  1. Clear your web browser’s cache and preview the changes.

 

Please, also watch a demo movie on how to do this.

how to hide the date and time in wordpress

Wordpress Design Themes
This entry was posted in WordPress Tutorials and tagged date, page, post, time, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket

Live Chat
We help you to choose the right product.