IT ENGLISH BOARD

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

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

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 15044
author 2019.07.05 0 15044
32
Fix: The System Administrator Has Set Policies to Prevent This Installation
author | 2019.07.03 | Votes 0 | Views 2473
author 2019.07.03 0 2473
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 2674
author 2019.07.03 0 2674
30
Child Themes
author | 2019.06.29 | Votes 0 | Views 2311
author 2019.06.29 0 2311
29
My computer is running slow, what steps can I do to fix it?
author | 2019.06.29 | Votes 0 | Views 2334
author 2019.06.29 0 2334
28
Nighthawk M1 port forwarding not working (8)
author | 2019.06.27 | Votes 0 | Views 4708
author 2019.06.27 0 4708
27
Plugged in, not charging problem, Windows 10
author | 2019.06.17 | Votes 0 | Views 2424
author 2019.06.17 0 2424
26
How to fix a Windows 10 laptop that's plugged in but not charging - Cnet
author | 2019.06.17 | Votes 0 | Views 2445
author 2019.06.17 0 2445
25
WordPress. How to hide time and date from the post page
author | 2019.06.10 | Votes 0 | Views 2410
author 2019.06.10 0 2410
24
How to Remove the Date from Your WordPress Posts
author | 2019.06.10 | Votes 0 | Views 2409
author 2019.06.10 0 2409
New