So , Hi Friends in This Articl Today I agoing to Teach you Guys how to Remove date , day from blogger post URL make the post URL plain . so stay tuned .
Lets get started
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
- Your Website looks like you have hosted your site in any web hosting .
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 Blogger.com 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">
//<![CDATA[
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>
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.
once again I advice u 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.
Post a Comment