IT ENGLISH BOARD

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

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

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
33
Remove Powered by WordPress in 3 Easy Steps (2)
author | 2019.07.05 | Votes 0 | Views 13329
author 2019.07.05 0 13329
32
Fix: The System Administrator Has Set Policies to Prevent This Installation
author | 2019.07.03 | Votes 0 | Views 1824
author 2019.07.03 0 1824
31
Why is this preventing me installing an MSI: The System Administrator has set policies to prevent this installation (7)
author | 2019.07.03 | Votes 0 | Views 2042
author 2019.07.03 0 2042
30
Child Themes
author | 2019.06.29 | Votes 0 | Views 1718
author 2019.06.29 0 1718
29
My computer is running slow, what steps can I do to fix it?
author | 2019.06.29 | Votes 0 | Views 1734
author 2019.06.29 0 1734
28
Nighthawk M1 port forwarding not working (8)
author | 2019.06.27 | Votes 0 | Views 4093
author 2019.06.27 0 4093
27
Plugged in, not charging problem, Windows 10
author | 2019.06.17 | Votes 0 | Views 1764
author 2019.06.17 0 1764
26
How to fix a Windows 10 laptop that's plugged in but not charging - Cnet
author | 2019.06.17 | Votes 0 | Views 1818
author 2019.06.17 0 1818
25
WordPress. How to hide time and date from the post page
author | 2019.06.10 | Votes 0 | Views 1810
author 2019.06.10 0 1810
24
How to Remove the Date from Your WordPress Posts
author | 2019.06.10 | Votes 0 | Views 1786
author 2019.06.10 0 1786
New