/blogger/community?hl=en
This content is likely not relevant anymore. Try searching or browse recent questions.
Remove ?m=1, ?m=0 suffix when visiting from mobile
1
Is there a way to avoid getting the mobile suffix when visiting from mobile? I'm using Soho template, so it's completely responsive and I don't see the point of having this.
I ask this because I'm trying to get an element to show only on specific urls and while it works in desktop, it doesn't work in mobile due to the ?m=1 and ?m=0 suffix. I could add duplicates of the <b:if> codes to take this into account, but it would make the code too long for my liking.

Basically what I'm doing is multiple lines like this (one for each of the six urls I want to add the element to, in different colors):

   <b:if cond='data:blog.url == "https://blogaddress.blogspot.com/p/page1.html"'>
   <style>.post-title{display:none;}
   .bar1 {
       background-color: #B2D7F2;
       height: 130px;
       margin-bottom:15px;
       }
   </style>
     <b:else>
      <style>.bar1 {display:none;}</style>
     </b:else> 
   </b:if>
   <div class='bar1'/>

With the suffix I need to add duplicates of this condition so the element will show on mobile for each url of the six urls (i.e. <b:if cond='data:blog.url == "https://blogaddress.blogspot.com/p/page1.html?m=1"'><style>..., and <b:if cond='data:blog.url == "https://blogaddress.blogspot.com/p/page1.html?m=0"'><style>..., and so on). Is there a workaround for this?
Details
Pinned
Locked
Latest Update Latest Updates (0)
Relevant Answer Relevant Answers (0)
All Replies (7)
Relevant Answer
Thanks for the fast reply, unfortunately it didn't work. But I found this question in stack overflow and data:blog.pageId works well and includes the mobile site.
marked this as an answer
<b:responsive='true'/>
Relevant Answer
<b:if cond='data:blog.url.canonical == "https://blogaddress.blogspot.com/p/page1.html"'>
 your code here
</b:if>
 
this should work, because I tested it on my blog and the title was hidden on both versions - pageId is also fine.
marked this as an answer
Relevant Answer
hello sir can you reply where i can put in blogger 
full process please
marked this as an answer
Relevant Answer
If you need help with your own blog then you need to open your own thread.
 
That way we won't mix up the different sites/ accounts/ issues.
Thanks.
marked this as an answer
Relevant Answer
I'm also facing the same issue in my site: https://www.best10ofall.com/
While removing so, https moving to HTTP. Is there any solution to this.
marked this as an answer
Relevant Answer
Hello, I'm battling with this problem since I migrate from blogger to WordPress, whenever I checked on my Google analytics. I noticed ?=m1 at the end of each url, so I try to Google search some keywords that my site rank for like http injector config file, I noticed it's 404 error because the URL end with ?=m1.
I have use redirection plugin but it doesn't work for it... I will reply appreciate if any one can help me out.
This is example of URL it will redirect to https://www.flashints.com/mtn-http-injector-config-ehi-file/?m=1
And it's 404 error
marked this as an answer
This question is locked and replying has been disabled.
Discard post? You will lose what you have written so far.
Write a reply
10 characters required
Failed to attach file, click here to try again.
Discard post?
You will lose what you have written so far.
Personal information found

We found the following personal information in your message:

This information will be visible to anyone who visits or subscribes to notifications for this post. Are you sure you want to continue?

A problem occurred. Please try again.
Create Reply
Edit Reply
This will remove the reply from the Answers section.
Notifications are off
Your notifications are currently off and you won't receive subscription updates. To turn them on, go to Notifications preferences on your Profile page.
Report abuse
Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Go to the Legal Help page to request content changes for legal reasons.

Reported post for abuse
Unable to send report.
Report post
What type of post are you reporting?
Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Go to the Legal Help page to request content changes for legal reasons.

Reported post for abuse
Unable to send report.
This reply is no longer available.
/blogger/threads
//accounts.google.com/ServiceLogin
You'll receive email notifications for new posts at
Unable to delete question.
Unable to update vote.
Unable to update subscription.
You have been unsubscribed
Deleted
Unable to delete reply.
Removed from Answers
Removed from Updates
Marked as Recommended Answer
Marked as Update
Removed recommendation
Undo
Unable to update reply.
Unable to update vote.
Thank you. Your response was recorded.
Unable to undo vote.
Thank you. This reply will now display in the answers section.
Link copied
Locked
Unlocked
Unable to lock
Unable to unlock
Pinned
Unpinned
Unable to pin
Unable to unpin
Marked
Unmarked
Unable to mark
Reported as off topic
Known Issue
Fixed
Marked Fixed
Unmarked Fixed
Unable to mark fixed
Unable to unmark fixed
/profile/0
false
Search
Clear search
Close search
Google apps
Main menu
Search Help Center
true
74
false