How to remove “?m=1” From Blogger Website

Hello Viewers, Welcome to my site “Shubham Blogging”. Guys Everyone knows that whenever we visit a blogger site from mobile, the site url look odd and most of the people doesn’t like it.

Having a clean url make your site professional and good looking. So in this article, I will tell you How to remove “? m=1” From Blogger Url

Why Blogger Website Shows “?m=1” ?

Previously Blogger Website look different in mobile and laptop view. So to solve this problem, Blogger introduce the concept of “?m=1”.Therefore, the “?m=1” look in the blogger url in mobile view.

Can we permanently remove “?m=1”

So there is no permanently solution for “?m=1” Removing this code. We cannot access the root of the blogger, but we can temporary means whenever someone visit front mobile it will automatically remove “?m=1” from your site by using the code.

Does the code will affect speed of the site?

Well this question is tricky, but i think it will not affect your blog speed because I am using this code in my blogger site. It will also not affect your SEO.

Steps to remove “?m=1” from Blogger Site

Step-1 : Go to the blogger dashboard and select the theme option.

Step-2 : Now Click on “Edit HTML”option from the dropdown menu.

Step-3 : Now you have to add below script just below the <head> tag.

How to Remove m1 from Blogger website 752x576 1
<script type='text/javascript'>
//<![CDATA[
var uri = window.location.toString();
if (uri.indexOf("%3D","%3D") > 0) {
var clean_uri = uri.substring(0, uri.indexOf("%3D"));
window.history.replaceState({}, document.title, clean_uri);
}
var uri = window.location.toString();
if (uri.indexOf("%3D%3D","%3D%3D") > 0) {
var clean_uri = uri.substring(0, uri.indexOf("%3D%3D"));
window.history.replaceState({}, document.title, clean_uri);
}
var uri = window.location.toString();
if (uri.indexOf("&m=1","&m=1") > 0) {
var clean_uri = uri.substring(0, uri.indexOf("&m=1"));
window.history.replaceState({}, document.title, clean_uri);
}
var uri = window.location.toString();
if (uri.indexOf("?m=1","?m=1") > 0) {
var clean_uri = uri.substring(0, uri.indexOf("?m=1"));
window.history.replaceState({}, document.title, clean_uri);
}
//]]>
</script>

Step-4 : Now save the code. Now “?m=1” will be remove from your site in mobile view.

Conclusion

In this post I shared you “How to remove “?m=1” From Blogger Website“. I hope that you like my post. Please visit our site daily for more new posts. Thankyou for visiting our site.

 

Leave a Comment