Blogger conditional tag, best way to check whether it is mobile version or Desktop version


You may have seen this :

<b:if cond='data:blog.isMobile'> 
//Mobile contents goes here 
//Desktop contents here 

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 == &quot;false&quot;'> 
//Contents inside this, will only appear in Desktop version. 


Post a Comment