Blogger conditional tag, best way to check whether it is mobile version or Desktop version
Published by Aslam
You may have seen this :
<b:if cond='data:blog.isMobile'>
//Mobile contents goes here
<b:else/>
//Desktop contents here
</b:if>
So, is there any other way without this else condition we can check if mobile version or desktop version is being accessed?
Yes, You can use `true` or `false` statements in blogger conditional tags in this case.
This is the best way you can insert custom scripts or stylesheets for mobile version and desktop version seperately!
<b:if cond='data:blog.isMobile == "false"'>
//Contents inside this, will only appear in Desktop version.
</b:if>
Comments
Post a Comment