
Hello everyone, Welcome here, ?m=1 is always a visible thing on mobile in Blogger-based websites and it makes your URL not look good you might be finding a solution to remove ?m=1 from your Blogger website, however, currently it's not possible to completely remove ?m=1 but we can hide it with a lightweight JS in this tutorial we are going to share that JS to hide ?m=1 in your Blogger website, So without wasting much time let's check how to hide it using pure JS.
How to hide ?m=1 in Blogger?
Before following these steps we recommend you take a backup of your Blogger template, By chance if any mistakes have been done we can undo changes using that backup.
- First of all, go to your Blogger dashboard
- Then click on the Theme option from the sidebar
- Then click on the drop-down icon near Customize option
- Then click on the Edit HTML option from the drop-down menu
- Then find
</body>tag and paste the following JS just above it
<script>/*<![CDATA[*//* ?m=1 hiding JS */ 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>Conclusion
Hope this tutorial will help you to hide ?m=1 from your Blogger website URL, If you have any doubts related to this tutorial ask me in the comments, Don't forget to share with your friends because may be it useful to them. Thanks for visiting, Have a nice day!