conditional tags blogger for desktop only

Is there any Blogger (blogspot) not portable contingent arrangement.

Someone ask to stackoverflow like this.

I would prefer to load javascript files solely on Desktop version of my
Google blogspot (blogger.com) since i would like a lightweight version of
my web log for mobile.

I came through followings, however not operating


<b:if cond != 'data:blog.isMobile'>;
<b:if cond = !'data:blog.isMobile'>;
<b:if cond = '!data:blog.isMobile'>;
<b:if cond='data:blog.pageType !== "data:blog.isMobile">

How can I write "is Not Mobile" conditional in Google blogspot? Thanks in
advance for all answers.

Update: I'm using following code at the moment and it's working but better
ideas are welcome


<b:if cond='data:blog.isMobile'>

<b:else/>
    //I include javascript files here and they only appear on desktop version
</b:if>

Here the solved for this problem:

You can be use true or false statements in blogger
conditional tags in this case. This is the perfect way :)


<b:if cond='data:blog.isMobile == &quot;false&quot;'>
//Contents inside this, will only appear in Desktop version.
</b:if>

Edit #1:

This will work just on the off chance that you have empowered versatile format, and set it to custom.

enter image description here

enter image description here

Furthermore, it works on Chrome's portable emulator. (will be diverted to portable adaptation if going to from a cell phone or with an emulator that mirrors a versatile Program Client Operator. it will include ?m=1 toward the finish of the URL)

enter image description here

Hope this helps.

Comments

  1. Hello Dimas Lanjaka this is a very interesting and very helpful post wish I was in search of, for almost a month now. Am glad it actually helps thumbs up bro.

    ReplyDelete

Post a Comment

Bila Ada posting yang kurang, atau error atau yang lainnya, silahkan tinggalkan komentar agar artikel/post di perbaiki.
Jangan Lupa Cek Box "Notify Me" agar tahu komentar kamu dibalas oleh saya.

If there are any posts that are missing, or error or anything else, please leave a comment for the article / post to be fixed.
Do not Forget Check Box "Notify Me" to know our comments replied by me.

Popular posts from this blog

Install deb package via Termux

How to Make Blogger Safelink Converter v3

List of weapon buff materials, effects and how it can be durango wild lands