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.
No comments:
Post a Comment
You are welcome to ask any questions and submit suggestions related to post