Home Business Search Engine Optimization How To Remove Date From Google Search Result

How To Remove Date From Google Search Result

As most of us know that Google can read anything which is written in plain text. Same goes for the date. The date may be useful to our readers but when we are doing blogging for many years with good Google Search Result position.

Most of the people check the freshness of the article by date and want to read the latest available one. So when we Remove Date from Google Search Result, there is a higher chance they will click on your blog, and you will get the high amount of traffic.

In this post, we are going to see three methods by which you can achieve this. So let’s get started:

Steps to To Remove Date from Google Search Result

Method 1: Using JavaScript

For this we have to modify your theme file especially these three files need to be updated index.php for the homepage, single.php for the single post, archive.php for archives.

Warning: Please backup all the above three files, so in case something goes wrong you can restore it back to get your blog working.

    1. Open up the WordPress Editor from Appearance or Go to your hosting panel file manager and go to the root of your active theme folder.
    2. Find those three files which were discussed above. (These are the general file names used in most themes. In some cases, there are different names in my case it was not single.PHP, it was loop-single.php)
    3. Find this code in those files.
      <?php the_time('F jS, Y') ?>
    4. Replace that code with following and save those files.
      <script language="javascript" type="text/javascript">document.write("<?php the_time('F jS, Y') ?>");</script>

Note :-

  • If the date is appearing on any other page of your blog, you can edit that particular file and repeat the same process as illustrated above.
  • If the above method does not work and still you wanted to remove the date from Google Search Result then you have to remove the <?php the_time(‘F jS, Y’) ?> from your theme file, But this will also remove it from readers.

Method 2: Using Yoast SEO Plugin

  1. Download Yoast SEO plugin from wordpress repository.
  2. Go to your WordPress Dashboard -> SEO -> Titles & Metas -> Post Types.Title and Metas - Yoast SEO
  3. Select Hide in Date in Snippet Preview option.

Method 3: By Removing Date Manually or Using Theme Settings

Some themes provide inbuilt functionality in their settings menu to show and hide post date. You can remove the date from the frontend to prevent it from appearing in Google search results.

If your theme doesn’t have this inbuilt option and then you can try finding the PHP file where the code is inserted and remove that code manually.

Now when Search Engine crawlers fetch your site, they are not able to read the date and hence it will not appear in Search Result.

Also Read: Display Last Updated Date in Newspaper WordPress Theme

Hotspot Shield

Thank you for reading this post and keep connected to Tech Arrival to continue enjoying wonderful posts. Share your views about this post in the comment section below. If you are still having any query throw it in the comment section.

If you find this post helpful, don’t hesitate to share this post on your social network. It will only take a moment, and also it is quite easy and helpful for others.

Button Not Working?

“This post may contain affiliate links & we will be compensated if you make a purchase after clicking on our links”
[Read More Here]

About Author

Mehul Boricha
Mehul Boricha is the founder of Tech Arrival & Astute Links. He is a computer and smartphone geek from Junagadh, Gujarat, India. He is a Computer Engineer by Education & an Entrepreneur by Passion. Apart from technology geek, he is an audiophile & loves to connect with people.


  • Hi, Mehul

    I have a newspaper theme and I want to hide date and author option in all from the home page so, pls. help me how can I do it.

    • Hello Harsh,

      It is very easy. Follow these steps:

      1. Go to your WordPress Dashboard -> Newspaper -> Theme Panel -> Block Settings.
      2. Click on “Meta info on Modules/Blocks” to expand it.
      3. Disable/Enable the things you want.

      Hope it helps!

  • Does the javascript method remove the date from SERP but visible on post?
    I want to hide date from SERP, not from readers.

    • Hello,

      As far as I recall there is no official Google restriction on hiding date and nor it is mentioned in any official guidelines. If you have read it somewhere from the official Google source then let us know we will mention it in the article. :)

  • Stay Connected

    Button Not Working?

    Subscribe to our Newsletter

    Stay updated with all the latest news, offers and special announcements.

    By signing up, you agree to our Privacy Policy and agree with the storage and handling of your data by this website.

    Latest Posts

    8 Best Gaming Keyboards Under $100 in 2020

    A good gaming keyboard must meet various requirements. It should be comfortable for e-mailing, chatting, and, most of all, gaming. Among the...

    12 Best Torrent Clients of 2020

    Torrent Clients are software applications that allow you to download files that use peer to peer connection system. BitTorrent is one of...

    All Time Favorites