IT ENGLISH BOARD

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

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

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
23
WordPress. How to hide time and date from the post page
author | 2019.06.10 | Votes 0 | Views 1405
author 2019.06.10 0 1405
22
What’s The Difference Between JPG, PNG And GIF?
author | 2019.06.07 | Votes 0 | Views 1449
author 2019.06.07 0 1449
21
How to Migrate your Site with All-in-One WP Migration
author | 2019.06.07 | Votes 0 | Views 1781
author 2019.06.07 0 1781
20
How do I Stop My Android Tablet from Sleeping?
author | 2019.06.04 | Votes 0 | Views 1397
author 2019.06.04 0 1397
19
How to keep your Android phone's screen on longer
author | 2019.06.04 | Votes 0 | Views 1724
author 2019.06.04 0 1724
18
Things You MUST DO Before Changing WordPress Themes (1)
inrokhah | 2019.05.29 | Votes 0 | Views 1632
inrokhah 2019.05.29 0 1632
17
How to Remove Author Name from WordPress Posts (2 Easy Ways)
inrokhah | 2019.05.29 | Votes 0 | Views 1438
inrokhah 2019.05.29 0 1438
Re:How to Remove Author Name from WordPress Posts (2 Easy Ways)
inrokhah | 2019.05.29 | Votes 0 | Views 1357
inrokhah 2019.05.29 0 1357
16
Remove sidebar / widgets from WooCommerce shop page (13)
inrokhah | 2019.05.26 | Votes 0 | Views 1526
inrokhah 2019.05.26 0 1526
15
Online documentation: Buttons Shortcode and Widget plugin
inrokhah | 2019.05.26 | Votes 0 | Views 1633
inrokhah 2019.05.26 0 1633
14
Buttons Shortcode and Widget
inrokhah | 2019.05.26 | Votes 0 | Views 1753
inrokhah 2019.05.26 0 1753
New