Sunday, May 15, 2022

How to remove date from blogger post url.

Remove date from blogger post url: Blogger is a free and amazing platform to start blog in free of cost. But there is one problem in blogger platform and that is the URL or Permalinks structure.

When we create a post and publish on blogger then date and year came in the url of the post. But, on there hand on WordPress blog, we can easily change the Url or permalinks structure.

Lets see the example:

1. this is the example of url on WordPress.

2. example of Url with custom domain on blogger platform.

3. this one is the example of post Url of free blog on blogger.

Now you can understand the deference between these two URLs.

If you started a new blog on blogger then Url changes are good for your. But if you are already ranked in search result then avoid this change. Because it can affect SEO of your blog.

So, let’s discuss about the advantage and disadvantages of remove data from blogger post.

Advantages of remove year and date from Blogger post url

If you are starting a new blog on blogger, then date and year removal is good for your. Because, you are not ranking in search result.
Short url look attractive as compare to default url of blogger.
With professional permalink you can get more traffic to your blog.
You can make your post evergreen. People are interested in reading new content. For example: if you post in 2021 and after 1-2 year your post will look like old stuff.
It helps in better ranking to get more organic traffic.

these are the some advantages of removing year and date from blogger post url.

Disadvantages of removing date from blogger post Url

If your Url already ranking with year and date in post url, then url change will affect the SEO of your blog.
You can get 404 error after change the url of your blog post.
Google don’t like 404 page error, so you can loose your ranking on google.
You can loose the traffic on your blog.

These are the disadvantages of date removal from the blogger post url. But, I try this method many time on my blogs which I created on blogger platform.

Now, if user came on url with date and year, then that user will automatically redirected to the new url without date and year.

First, user will see one popup that there is nothing on this page, then that page redirect to new url, and because of this the bounce rate can increase on your blog.

Now, lets check the Step-By-Step guide to remove date from blogger post url.

How to Remove Date from blogger post Url – Step by Step Guide

Date and year removal from Blogger post URL is very easy. Every Blogger want to remove date from blogger post url and want to make like WordPress.
On WordPress we can change the permalinks from the backend settings. But in blogger platform, there is no option to change, But we can remove date and year from the url by editing the code on Blogger Platform.

1. Login in your blogger dashboard and find Theme option.-Click on Theme

remove date from blogger post url, change url blogger, remove date from the post of blogger url, theme option in dashboard, remove, url, blogger, post, date, and, year

You can find Theme option on the sidebar of the blogger dashboard. Click on the Theme option. After this click you will we redirect to the new page.

2. Edit HTML


On this page, you can see a dropdown icon with CUSTOMIZE button. Click on that icon and then click on Edit HTML. You will be redirected to template editor/HTML editor.

3.Find <head> Tag and Paste script code after <head> tag.

How to remove date from blogger post url.

You can use Control+F to find <head> tag in the code (Windows) and Command+F to find <head> tag in Mac. Now paste given code after <head> tag. Click here for code.

Don’t forget to check for preview after paste the code after head tag.

4. Click on Save icon.


After click on Save icon, date and year will be removed from the url of blogger post.

Code for removing date from blog post url

<script type="text/javascript"> 


// BloggerJS v0.3.1 

// Copyright (c) 2017-2018 Kenny Cruz 

// Licensed under the MIT License 

var urlTotal,nextPageToken,postsDatePrefix=!1,accessOnly=!1,useApiV3=!1,apiKey="",blogId="",postsOrPages=["pages","posts"],jsonIndex=1,secondRequest=!0,feedPriority=0,amp="&"[0];function urlVal(){var e=window.location.pathname,t=e.length;return".html"===e.substring(t-5)?0:t>1?1:2}function urlMod(){var e=window.location.pathname;"p"===e.substring(1,2)?(e=(e=e.substring(e.indexOf("/",1)+1)).substr(0,e.indexOf(".html")),history.replaceState(null,null,"../"+e)):(e=(e=postsDatePrefix?e.substring(1):e.substring(e.indexOf("/",7)+1)).substr(0,e.indexOf(".html")),history.replaceState(null,null,"../../"+e))}function urlSearch(e,t){var n=e+".html";t.forEach(function(e){-1!})}function urlManager(){var e=urlVal();0===e?accessOnly||urlMod():1===e?getJSON(postsOrPages[feedPriority],1):2===e&&(accessOnly||history.replaceState(null,null,"/"))}function getJSON(e,t){var n=document.createElement("script");if(useApiV3){var o=""+blogId+"/"+e+"?key="+apiKey+"#maxResults=500#fields=nextPageToken%2Citems(url)#callback=bloggerJSON";nextPageToken&&(o+="#pageToken="+nextPageToken),nextPageToken=void 0}else o=window.location.protocol+"//"+window.location.hostname+"/feeds/"+e+"/default?start-index="+t+"#max-results=150#orderby=published#alt=json-in-script#callback=bloggerJSON";o=o.replace(/#/g,amp),n.type="text/javascript",n.src=o,document.getElementsByTagName("head")[0].appendChild(n)}function bloggerJSON(e){var t=[];if(useApiV3||void 0===urlTotal&&(urlTotal=parseInt(e.feed.openSearch$totalResults.$t)),useApiV3){try{e.items.forEach(function(e,n){t.push(e.url)})}catch(e){}nextPageToken=e.nextPageToken}else try{e.feed.entry.forEach(function(n,o){var r=e.feed.entry[o];,n){"alternate"[n].rel&&t.push([n].href)})})}catch(e){}urlSearch(window.location.pathname,t),urlTotal>150?(jsonIndex+=150,urlTotal-=150,getJSON(postsOrPages[feedPriority],jsonIndex)):nextPageToken?getJSON(postsOrPages[feedPriority]):secondRequest&&(nextPageToken=void 0,urlTotal=void 0,jsonIndex=1,secondRequest=!1,0===feedPriority?(feedPriority=1,getJSON("posts",1)):1===feedPriority&&(feedPriority=0,getJSON("pages",1)))}function bloggerJS(e){e&&(feedPriority=e),urlManager()}bloggerJS(); 



Our Thoughts:

It’s done! I hope you all the date and year are gone from your blog post. if you face any problem to remove date from blogger post url, then you can ask us in the comment box.

If this post help you to find a solution for removing date from url of blogger post, then share this post on your social media platforms. Thanks!

Sharing is Caring

Don't forget to share with others. Thanks! 

My Name is Rashvinder Narwal, I am in Website design and development profession from 2015. I love to share my knowledge with my readers over 15+ blogs in English and Hindi language. Thanks !


Please enter your comment!
Please enter your name here