-->

How To Remove/Disable Mobile View ?m = 1 In Blogger Blog URL


Indeed, code ?m = 1 is an indication that the device used is a mobile device, while code ?m = 0 is an indication that the device used is a desktop device, although in reality it is ?m = 0 code does not show in desktop device.

Of course this becomes a duplicate tittle tag as there are other parameters, and it can certainly affect the position of SEO blog on SEO engine as well. Well, there are many ways to get rid of the code code ?m = 1 or ?m = 0 on the presence of mobile devices.

So today I will tell you in this article how you will be able to remove ?m = 1 or ?m = 0 from the URL of your website with the help of only one code and this will improve the rank of your website.

How To Remove/Disable Mobile View ?m = 1 In Blogger Blog URL

Step 1: Login into your Blogger Account.

Step 2: Now Go to Theme >> click on Edit HTML.

Step 3: Find the </body>

Step 4: Just before the </body> tag paste the following code:

<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 5: Save the theme.
ViewCloseComments
Cancel

  • Facebook
  • Contact
  • Twitter
  • Instagram
  • YouTube
  • Telegram