Remove dates from blogger post URL
Remove dates from blogger post URL
Have you ever tried to remove dates from Blogger post URLs, but have not got any permanent solution?
Don’t worry.
Many awesome people like you who are blogging in Blogger are searching for a solution to remove the date from the Blogger URL. Today in Blog SEO Ranking I will provide a complete guide to remove dates from blogger post URLs.
So, Let’s dive in and find a solution to the question “How to remove a date from a Blogger post URL”
The topics which we are going to cover in detail in this article:
- What is a Blogger post URL?
- Why is it necessary to have a short URL?
- How to remove dates from Blogger post URL
- How to change the permalink in Blogger
- Is it worth changing the URL – My Honest Opinion
- Summing Up
Let’s cover these topics one by one:
What is a Blogger post URL?
Every page or post in a blog has a unique URL by which it can be accessed. Blog SEO Ranking has a post on Keyword Research, so the post can be accessed only using the link or URL of that post which looks like this:
Similarly, every page like the About Us, and Contact Us, and every post has unique links. These URLs are very vital for any blog, if the URL is not good enough then there is no use for a good article.
Why is it necessary to have a short URL?
- It a short and much more convenient because:
- It is easily readable.
- It is easy to remember.
- It is descriptive and meaningful.
- It makes sharing easier.
- It builds the trust of the user.
- It helps to get a good ranking.
Here You can see what a shortened URL looks like:
In the blogger, the default URL contains the date of publishing, which unnecessarily makes the URL longer, so we’ll know how to shorten the default URL by removing the date from it.
How to remove dates from Blogger post URLs?
So now you know why it is necessary to have a shorter URL. In this section, we are going to discuss what will be the steps if you want to remove dates from the Blogger Post URL. One question that may come to your mind is whether it is possible to remove dates from blogger posts. My answer is “NO”. It is not technically possible to remove the dates as the owner of the blog is Google. Google does not have this feature in Blogger. But do not worry we have a method through which we can hide the date from the URL, read this article, and make sure you do not miss any point.
#STEPS:
1. First log in to your blogger account.
2. Now click on the triangle-like icon shown below in the image.
3. Now go to “SETTINGS” on the left side menu.
4. Here you will get an option to Edit HTML. Click on that option.
5. Now press CTRL+F on your keyboard and type </head>
<script type=”text/javascript”> | |
//<![CDATA[ | |
// 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!==e.search(n)&&(window.location=e)})}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=”https://web.archive.org/web/20230418062907/https://www.googleapis.com/blogger/v3/blogs/”+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];r.link.forEach(function(e,n){“alternate”===r.link[n].rel&&t.push(r.link[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(); | |
//]]> | |
</script> |
6. You will get the header tag ending. Now copy the javascript code given above and paste the code just above the ending of the header tag(</head>).
7. Now click on the save button to save the code.
8. Now visit your blog and you can see the date has been removed from the URL.
So let’s make it clear, we haven’t removed the date technically but we have used a javascript code to set a redirection look to shorten the URL and hide the date.
How to change the permalink in Blogger?
How to set a custom permalink for an unpublished post?
How to set a custom permalink of an already published post?
#STEPS:
3. Now click on the permalink and copy that and save it for any emergency.
Last and most important step to change the permalink:
#STEPS:
Is it worth changing the URL – My Honest Opinion
Here are the basic reasons why you should not change the URL:
You should not remove the date and time from your URL because
# The date and time actually don’t get removed. Instead of that, it gets hidden.
# Your posts do not get indexed on Google.
# It gives a 404 error when you use the script given above and then the site is loaded.
# Ranking of your page will go down
#You will not be able to submit your URL on the Google search console.
I will not recommend you hide or remove the date and time because, in the end, it will only harm your page and blog. So it’s better to keep your URL as it is. This code works in the past months but because of the new blogger updates, this code does not work properly. At last, do not try to remove the date and time from the URL.
SUMMING UP:
We have tried to find some permanent solution to your question. We can see with the advancement of technology every day every company is updating itself. This is also applicable to Google. 10-11 months ago the javascript code worked properly to remove the dates from the URL and shorten it. But now this method is not applicable because of the new updates in the blogger. In Blog SEO Ranking we try to find the solution for newcomers in the blogging field. As a newbie, they might not know about the latest updates, tips, and tricks of bloggers. So if you have learned anything from this article make to share it with at least one new blogger. This will help them a lot. Please put down your queries in the comments so that we can answer all your questions.