IT ENGLISH BOARD

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

Author
author
Date
2019-06-10 12:35
Views
2216

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



  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.
  2. 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 3507
author 2020.09.22 0 3507
102
How to delete songs and albums from your Google Play Music library
author | 2020.09.19 | Votes 0 | Views 3669
author 2020.09.19 0 3669
101
Watch Prime Video on Chromecast
author | 2020.09.14 | Votes 0 | Views 3695
author 2020.09.14 0 3695
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 4458
author 2020.09.09 0 4458
99
IONOS Joomla! Standard Installation
author | 2020.09.02 | Votes 0 | Views 2336
author 2020.09.02 0 2336
98
How to improve the life of a Battery: (1)
author | 2020.08.25 | Votes 0 | Views 2381
author 2020.08.25 0 2381
97
Laptop battery not charging
author | 2020.08.21 | Votes 0 | Views 2688
author 2020.08.21 0 2688
96
Plugged in, not charging (1)
author | 2020.08.21 | Votes 0 | Views 2486
author 2020.08.21 0 2486
95
How to add reCaptcha plugin to a custom form on my WordPress website?
author | 2020.08.13 | Votes 0 | Views 2691
author 2020.08.13 0 2691
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 2375
author 2020.08.13 0 2375
New