user2175217
user2175217

Reputation: 21

How can I detect mobile device in Blogger Post?

Is there way to detect mobile device in Blogger Post without using JavaScript? We can do it in blogger template easily using primitives (i.e. cond=data:mobile) but I couldn't find a way in post.

Upvotes: 2

Views: 2324

Answers (1)

Rahul Shah
Rahul Shah

Reputation: 1407

Blogger Conditional tags only work in templates and not on posts/widgets.

If you want something for a particular url in mobile site,

use conditional url tags <b:if cond='data:blog.url == PUT_URL_HERE'>

and

mobile conditional tag <b:if cond='data:blog.pageType == data:blog.isMobile'>

together.

Upvotes: 3

Related Questions