IT ENGLISH BOARD

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

WordPress
Author
author
Date
2019-06-10 11:02
Views
1682

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




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.

Total Reply 0

Total 104
Number Title Author Date Votes Views
103
Join a Microsoft Teams meeting
author | 2020.09.22 | Votes 0 | Views 2814
author 2020.09.22 0 2814
102
How to delete songs and albums from your Google Play Music library
author | 2020.09.19 | Votes 0 | Views 2986
author 2020.09.19 0 2986
101
Watch Prime Video on Chromecast
author | 2020.09.14 | Votes 0 | Views 2970
author 2020.09.14 0 2970
100
How to Fix the Win­dows 10 We Could­n’t Con­nect to the Update Ser­vice Issue (2)
author | 2020.09.09 | Votes 0 | Views 3721
author 2020.09.09 0 3721
99
IONOS Joomla! Standard Installation
author | 2020.09.02 | Votes 0 | Views 1792
author 2020.09.02 0 1792
98
How to improve the life of a Battery: (1)
author | 2020.08.25 | Votes 0 | Views 1818
author 2020.08.25 0 1818
97
Laptop battery not charging
author | 2020.08.21 | Votes 0 | Views 2137
author 2020.08.21 0 2137
96
Plugged in, not charging (1)
author | 2020.08.21 | Votes 0 | Views 1948
author 2020.08.21 0 1948
95
How to add reCaptcha plugin to a custom form on my WordPress website?
author | 2020.08.13 | Votes 0 | Views 2110
author 2020.08.13 0 2110
94
I can't log in to the WordPress admin dashboard after installing and activating Limit Attempts plugin
author | 2020.08.13 | Votes 0 | Views 1799
author 2020.08.13 0 1799
New