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.
“This post may contain affiliate links & we will be compensated if you make a purchase after clicking on our links” [Read More Here]
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
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.
- 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.
- 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)
- Find this code in those files.
<?php the_time('F jS, Y') ?>
- Replace that code with following and save those files.
- 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
- Download Yoast SEO plugin from wordpress repository.
- Go to your WordPress Dashboard -> SEO -> Titles & Metas -> Post Types.
- 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.
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.