How to fix blogger ?m=1 problems?

computer


Hello friend after "How to get easy AdSense approval Topic" i'm here to discuss about the fixing of new problems of how to fix blogger ?m=1 problems. First of all i would like to share why is it necessary to fix ?m=1 problem. It is because , this kind of problems will make your websites loading speed slow in the mobile phone(it's not seen in computer) and is definitely lowering your traffic and the income. Here are the step for fixing this problems

Step 1 : Copy the code given below.


<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>



Step 2: Go to the <Theme>
              Click on the <Edit html>

Step 3: Go to the lower part of html code. You will find </body> and </html>.
             click just above the </body> and press ''enter''. You can get space where you will paste the code               and save it.

YOU WILL NOTICE THAT ?m=1 problem in mobile phone was solved!

For MORE visit HERE


No comments: