Are you finding trouble with the m=1 in blogger? Do you want to get rid of those issues? Stay calm and this article we are going to get it how to evacuate m=1 in blogger and improve your website's performance.
Having a clean and brief permalink gives your website's permalink a proficient yet cutting edge look, you'll effectively share the urls within the social media without consolidation with a url shortener, and in a few cases it is simpler to keep in mind brief permalink instead of long permalinkHence, in this article I'm would be showing you how to evacuate m=1 in blogger, but some time recently that let's see why the Blogger cms is appearing the m=1 parameter. Presently, let's get on track
Why does Blogger CMS appear in the m=1 parameter?
Essentially, there's a highlight in blogger where you'll include a separate theme for versatile devices in order to upgrade client involvement and blogger identifies whether to appear that subject or not by using that of parameter m=1 within the permalink of the mobile clients. Possibly there were a lot of diverse ways to show that mobile theme but Blogger cms favors to utilize this strategy till date.
Now let's focus more on how to evacuate m=1 in blogger.
How do we Remove m=1 in Blogger?
I will guide you to remove m=1 in blogger.
Step 1. At first, you need to go to the Blogger dashboard i.e. Blogger.com
Step 2. Go to the Themes Section
Step 3. Click on the drop down arrow near customize and select Edit HTML
Step 4. 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 5. Paste the code just above the </head> tag, as shown in the image above
Step 6. Click on save.
Bravo !!! You have just perform the above steps to remove m=1 in blogger.
How does the above code work?
Fundamentally, it's an optimized JavaScript code that evacuate m=1 in blogger, this implies that guests will see a clean url without the m=1 parameter within the permalink of your blog whenever a user visit your blogger site though their mobile device. Usually perfect way to settle this issue till date!
Can this code work normally please. I wanted to remove mine.
ReplyDelete