How to Remove ?m=1 in Blogger

How to Remove ?m=1 From Website URL On Mobile

If you have visited your WordPress on blogger blog on your mobile device and you have noticed that your URL contains ?m=1 or m=1.

You don't have to worry about it because it automatically adds up if your website is viewed on mobile devices means that mobile is equal to true, here digit 1 represents that it's true.

If you don't remove this m=1 it will not affect your blog in any condition but to make your website URL user-friendly you have to remove this so that your website looks professional.

Today in this article I will tell you how you can remove that m=1 from the URL if your website is viewed on mobile devices.

My website also shows this m=1 if it is used over mobile devices you can check it. It is not added by you nor by your website template it is automatically added by blogger CMS but it is up to you if you want to remove this or not.

So now if you want to remove this you will have to follow the steps which are provided below and do as it is said without leaving any steps only two-three steps are required to do that.

Steps to follow:

  1. Go to blogger layout editor.
  2. Make a new HTML/JavaScript Widget and paste the code provided below into that widget
  3. <script>
        var curl = window.location.href;
        if (curl.indexOf("m=1") != -1) {
            curl = curl.replace("m=1", "m=0");
            window.location.href = curl;
        }
    </script>
    
  4. Save Widget

You have successfully removed m=1 from the website URL now go and have a look!

Conclusion:

You have successfully removed m=1 from your website URL if it is viewed on mobile devices.

Tags :

Related Posts

M.Muzammil

I am Muzammil, a Self-taught Web Designer & Developer. I haven't yet completed my college degree. Started learning programming at the age of 12 and still learning. I love to work in Javascript and make eye-catchy designs. Free for your calls :)

2 Comments

Add Comment
Chaudhry Rahman

but now this is showing m=0 how to remove this m=0

M.Muzammil

Wait for the blogger update...