Join Our Telegram Group to connect with bigger community. Join Now!

Table of Content

How to remove date from blogger or blogspot post url in 2024 | Peak Fiction

If you're looking to remove the date from your Blogger post URLs, you're in the right place! In this article, I'll guide you through a quick process to eliminate the year, month, and ".html" from your Blogger or Blogspot website URLs. Once you follow the steps outlined here, your blog post permalinks will appear shorter, akin to the URL structure of WordPress posts. Lets see How To Remove Date From Blogger Post Url in Simple Steps.
How to remove date from blogger or blogspot post url in 2024 | Peak Fiction
Usually, Blogger Custom Domain or Blogspot URLs will look  like https://peakfiction65.blogspot.com/2021/04/demo-post-1.html
After implementing the steps provided in this article, you'll be able to transform your blog URLs to a cleaner format like this: https://peakfiction65.blogspot.com/demo-post-1

How to Remove Date from Blogger Post/Blogspot Site URLs?

If you're aiming to eliminate the date from your Blogger post or Blogspot site URLs, you're not alone. Blogger's default permalink structure includes a lengthy format with the date and ".html" at the end, unlike WordPress. For a more professional and SEO-friendly appearance, many bloggers hosting their sites on Blogger.com seek shorter and cleaner URLs. While Blogger's dashboard doesn't provide a direct setting for customizing the permalink structure, you can achieve this by incorporating a piece of code into the theme file. This article will guide you through the process of removing the date from your website's URLs for a cleaner and more streamlined presentation. So How do I remove the date and HTML from a blogger's post URL?

SEO Benefits of Removing Date from Blogger Post URL:

1. Optimal Length for SEO:
Shortening URLs by removing the date and .html aligns with Google's recommendation of permalinks under 80 characters, positively impacting SEO.
2. Professional Appearance:
Concise URLs not only meet SEO criteria but also present a more professional and memorable appearance for visitors.
3. Evergreen Content Appeal:
By removing the date, your content becomes evergreen, attracting more traffic as visitors can't easily identify when the post was published. This positively influences SEO rankings in Google Search Results.

Quick Steps to remove Year and Month from Blogger Post URLs:

Here are the quick steps to remove the year and month from Blogger post URLs. Follow these steps:

Important Tip: Before proceeding, ensure you've backed up your theme (Blogger > Theme > Restore).

Step 1: Log in to Blogger.com with your Google account.
Step 2: On the left panel, click on "Theme."
Step 3: In the theme customization options, locate the triangle drop-down arrow to the right of the customize button. Click on it, and from the options, choose "Edit HTML."
Step 4: After clicking on "Edit HTML," you'll see the theme file of your current site. Press "Ctrl + F" to search for </head> and press Enter.
Step 5: Copy the provided code below and paste it just above </head>. Finally, click on "Save file."
<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://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>
Follow these steps, and you'll successfully remove the year and month from your Blogger post URLs.

Disadvantages of Removing Date from Blogger Post URL:

  • Limited Applicability:
Removing the date is beneficial mainly for new bloggers or those with a limited number of posts. For established blogs with good rankings, this change might have drawbacks.
  • Negative Impact on SEO Rankings:
If you've published numerous posts and achieved good rankings in search engines, altering the URL structure can lead to negative SEO repercussions. The change may cause previously indexed posts to return 404 errors, resulting in temporary disappearance from search engine results.

How to revert back to Default Blogger urls ?

Option 1: Using Theme Restore:
  • Go to the Theme section.
  • Click on the dropdown triangle arrow.
  • Select "Restore."
  • Upload the theme file that you previously backed up before making changes to the URL structure.
  • Click on "Save."
Option 2: Manually Remove Added Code:
  • In the Theme section, locate the code you added above the </head> tag.
  • Remove the added code.
  • Save the theme.
Either of these methods will help you revert to the default Blogger URLs. This is How To Remove Date From Blogger Post URL.

Great job! Once you follow the provided steps, you'll notice that the date has been successfully removed from your Blogger posts. If you encounter any issues, feel free to watch the video tutorial below for a visual guide on removing the date from Blogger post URLs. Happy blogging!

Post a Comment