Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

IS there a way to show code only when a user is on a mobile device and it wont show up on the desktop. I found the wp mobile detect plugin that looks to do the trick my thoughts are 1. Is this a good plugin do people have alternatives 2. Is there a way to do this without a plugin, manul code wish?

share|improve this question

marked as duplicate by Johannes Pille, s_ha_dum, kaiser, toscho May 13 '13 at 15:14

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
It is not necessarily inherently a bad plugin, but user agent sniffing sucks in general. Also, did you see this question? –  Johannes Pille May 13 '13 at 14:35
    
ah thanks yes read that just not thanks, interesting, i wasnt planning on doing anything to advanced, just was thinking of putting a mobile advertisement spot up on mobile but didnt want it on my desktop, so was looking for best way to do that –  David May 13 '13 at 15:02

Browse other questions tagged or ask your own question.