How to remove date and html from blogger post url

Hi friends, today we are going to talk about removing date and HTML from blogger post URL. I will tell you about How to remove the date and HTML from the blogger post URL. All these things you can get in this article. So keep tuned with us and know more details about it.

Hello, friends if you also want to remove date month, and HTML from block post on your blog then you are in the right place we will try to solve all your problem by throwing this post. We will try to resolve all your doubts. Please read this post carefully so that we can answer all your questions and if you find the answer to all your questions then we start today's topic without wasting time.


As you all know, if we write any post in that dress, its URL is simple and attractive which is good to look at as well as great for SEO. When they write a post in the same blogger, its URL is with the date month and HTML. The family is open which shows how old it is.

Disadvantages and advantages of removing history from Blogger if post URL

I request you not to remove the URL from the post on your blog without knowing the advantages and disadvantages, otherwise, you may face a lot of problems.

The benefits of removing a date from a blogger post URL

This is a question that every blogger, if searching, has to do is how to remove the date from their blog URL. What happens when you remove the date from a URL?


  • Your website turns into a professional URL
  • Blog posts get a professional permalink
  • Vistors do not know the date on which your post was published
  • Helps to rank in search engine results
  • The website gets a short URL

Disadvantages of removing the date from the blogger post URL

It's good to remove the date from the post URL but for new bloggers, if you are a new blogger. And if there is no shared post then you can remove the date from the URL.

But if you have a well-ranked blog, my advice to you is not to remove the date from the post URL on your blog, it will affect your SEO and the post will come down.

Let me explain

If any of your posts are ranking on Google and now you remove the date from the URL of your post, the old URL will show a 404 error. People will not be able to find your post. Now if you create a new URL by removing the date, you will have to rank it from the beginning.


[Step By Step] How To Remove Date From Blogger Post URL

Now I am going to tell you how you can remove the date from the URL. Below I have given you some steps to follow.

First, you have to log in to Dashboard.

Click on the theme section and then click on the Customize arrow.

Now Click on Edit HTML

Now press ctrl + F and then appeared a search box. 

Search for </head>.

Below I will provide a JavaScript (JS) code, copy it.

Paste this below code above this </head> and click on the Save icon.

<script type="text/javascript">


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();




After adding this code, your blog URL will be removed from the date and HTML. So now you understand how to remove the date from the blogger post URL. It is very easy. Here again, I will tell you that if you do not remove the date from your blog URL then it will be fine. The code only redirects and hides the date and HTML, not the date. You can move your mouse pointer to your blog post to see a live example of this. I will show you the original URL of this post


How did you like this How to remove date and HTML from blogger post URL? You must definitely give us your feedback by commenting in the comment box below. If you want to give some kind of Suggestion, then you can share your opinion with us in the Comment Box below.

Post a Comment

Please do not enter any spam link in the comment box.