This blog content is to help bloggers specially blogspot.com bloggers to have tips and tricks few hacks to make their blog look good to people and even to google bots



How do I fix m1 problem on Blogger? Solve ?m=1 Issue

How to Fix ?m=1 error issue in blogger m=1 Fix: Many blogger face this problem. This is a normal thing for smartphone url. It jusr suffix for mobile to direct user to mobile version of blog. But some time search consol give error related to m=1. If you think search consol giving error related to this or you dont want this suffix for your blog. you have to add small code in your blog. For this edit your blog theme for this follow these points one by one as it is 


Solve m=1 Issue







1. First login in your blog. 

2. Go to your theme by clicking theme on right side control panel in blogger. 

3. If you wann see this by images go this post How to Edit Theme in this post i show how to create blog and edit theme, layout to add widget. 

4. Note: Before editing anything take backup of your theme, so anything go wrong you can revert to previous form. If you do not know how to take backup of your theme Click here "How to take backup of theme or restore it

5. In your theme html editor find
"<body>", if you can not find then press "ctrl+F" or see Find in your browser gear (:) three dots. 

6. Copy pase this code just below "<body>" tag
<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>
7. Save your template and see result in your smartphone browser. the problem will be solve.

8. If this not worked for you then go to bottom in html editor and search "</body>" and pase above it. and again check in mobile browser.

Please like and Share this post on social networks.
Share:

No comments:

Post a Comment

You are welcome to ask any questions and submit suggestions related to post

Ad Space

Responsive Advertisement

Blog Archive