How to remove ?M=1 from blogger link

Today's discussion is about how to remove the text ?m=1 at the end of the site link when visiting the blog site from a mobile device. You can solve this problem very easily with a small code. So let's find out.

How to remove ?M=1 from blogger link

Remember, ?m=1 never comes at the end of the link while browsing on computer, only when browsing on mobile, the text ?m=1 comes with the blogger link.

Follow below steps to remove ?m=1 from blogger link

Step - 01 : First copy the Html code from below, then follow (Step - 1 & 2).

HTML 
      <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 - 02 : Now you go to Theme option from your blog dashboard. From here, click on the small triangle icon next to Customize and select Edit Html.

?M=1 রিমুভ করা



Step - 03 : Now find the </body> tag by pressing ctrl+F from the keyboard. Then save the copied code above the </body> tag.

?M=1 রিমুভ করা


(Note: Make sure to backup your blogger theme before adding any code)
I hope you understand, this way you can easily remove the text ?m=1 from your blog, those who want to learn blogging, click on the link given below and download the learn blogging book.
Tag : blogger tips, blogger link m1 remove, how to remove blogger, blogger free tips, m1 remove, toki, how to remove m1 from blogger link, blogger premium template download, blogger link customize, amazen blogger template, ultralite blogger template, amazen blogger template premium free, ultra lite pro blogger template, best blogger templates

-------------------------------------

So far today. See you later in another post. Until then stay healthy and safe. If the posts on our site are helpful to you, don't forget to share them with your friends. And stay with us to get such latest posts.

[ You can join our Facebook fan page ] 

Post a Comment

0 Comments