How to Remove "?m=1" or "?m=0" in blogger ?


       On blogger when a user requests with a mobile device, the url in the address bar will appear additional "?m=1".

This identifies that the device requesting the page is a device with a small screen, so the theme will switch from desktop view to mobile view. 

For some users this problem may be very annoying, because maybe this will also affect the SEO of the website. therefore this time I will show you how to remove the code "? m = 1" , there may be many ways to do that, but this time we will remove it using javascript.

How to remove "?m=1" in blogger ?

Here are the steps:

Step 1. Go to your admin blogger dashboard.

Step 2. Select "Theme" menu  >> select down arrow beside "Customize" then select  "Edit HTML"

Step 3 In the box press "CTRL + F" to search type "</body>", then copy and paste code below before "</body>"

<script type='text/javascript'>

var uri = window.location.toString();if (uri.indexOf(&quot;?m=1&quot;,&quot;?m=1&quot;) &gt; 0) {var clean_uri = uri.substring(0, uri.indexOf(&quot;?m=1&quot;));window.history.replaceState({}, document.title, clean_uri);}


Step 4. Save the HTML and try preview your blog.

In step 3, we use javascript to find "?m=1" in index url, after finded then the javascript remove them. 

So "?m=1" is still there when the blog is loaded, after the blog is loaded, then the java script deletes it. 

For details step by step yo can watch this video below . 

Okay, that's enough for now from me, if you have any questions, please comment in the comments column. If something goes wrong I apologize. Hopefully helpful, and thank you.

"Look for someone who is willing to accept your situation, your family and your job. In fact, happiness is about being together and being grateful." 

Featured Post

How to fix CLS issue in your blog or web ?

  Fixing CLS issues is a big deal. That's because most of your competitors won't fix CLS problems and as a result won't rank wel...