How to Remove ?m=1 and ?m=0 URL In Blogger

One reason why do you want to remove ?m=1 and ?m=0 When accessed through a mobile device is that you have used the ...
How to Remove ?m=1 and ?m=0 URL In Blogger

How To Remove m=1 In Blogger

One reason why do you want to remove ?m=1 and ?m=0 When accessed through a mobile device is that you have used the Responsive theme on the blog so that the mobile special display provided by default is not used again other than that also to avoid duplicate titles tags because there are other parameters affect SEO.

Maybe here is also from friends who want to fix the comment that comes in, because the Disqus reading system reads the blog from the blog accessed from ?m=1 and ?m=0.

So that it will make a difference from the commented comment that comes in when accessed passing by ?m=1 cannot be read on the desktop and vice versa. Then, how do you get rid of the blog URL parameters on a mobile device? Alright, please follow the following easy steps.

How to Remove ?m=1 and ?m=0 When Accessed Via Mobile Devices

You can use it, but at your own risk

The first step, open Blogger > Click the Theme Menu > Click Edit HTML > Then find and add the code below right before </body>

<script>
//<![CDATA[
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>

Then click on the Save Theme button and you are done.  Yes, that's all you need to add.

By adding this code, now your blog URL will not display the parameters ?m=1 and ?m=0 when accessed via a mobile device.

That's the way to remove ?m=1 and ?m=0 when accessed via mobile devices that Blog Faters can share.  Hope it helps and greetings.

Words can inspire, thoughts can provoke, but only action truly brings you closer to your dreams.

Post a Comment

© Blog Faters. All rights reserved. Developed by Jago Desain