IT ENGLISH BOARD

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

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

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 3876
author 2020.09.22 0 3876
102
How to delete songs and albums from your Google Play Music library
author | 2020.09.19 | Votes 0 | Views 4075
author 2020.09.19 0 4075
101
Watch Prime Video on Chromecast
author | 2020.09.14 | Votes 0 | Views 4083
author 2020.09.14 0 4083
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 4873
author 2020.09.09 0 4873
99
IONOS Joomla! Standard Installation
author | 2020.09.02 | Votes 0 | Views 2630
author 2020.09.02 0 2630
98
How to improve the life of a Battery: (1)
author | 2020.08.25 | Votes 0 | Views 2666
author 2020.08.25 0 2666
97
Laptop battery not charging
author | 2020.08.21 | Votes 0 | Views 2977
author 2020.08.21 0 2977
96
Plugged in, not charging (1)
author | 2020.08.21 | Votes 0 | Views 2763
author 2020.08.21 0 2763
95
How to add reCaptcha plugin to a custom form on my WordPress website?
author | 2020.08.13 | Votes 0 | Views 2987
author 2020.08.13 0 2987
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 2663
author 2020.08.13 0 2663
New